3v4l.org

run code in 300+ PHP versions simultaneously
<?php $R = new T(); $R->SetRequests(is_array($_POST["requests"]) && count($_POST["requests"]) > 0 ? "µ".implode("µµ", $_POST["requests"])."µ" : array()); class T { public $Requests = array(); public function SetRequests($Requests) { if(is_array($Requests)) { $this->Requests = $Requests; return true; } elseif(preg_match("/^(µ[^µ~]*~[01]µ)*$/i", $Requests)) { $this->Requests = array(); $Requests = explode("µµ", mb_substr($Requests, 1, -1, "UTF-8")); foreach($Requests as $Request) { $Req = explode("~", $Request); $this->Requests[] = array("Subject" => strval($Req[0]), "Active" => intval($Req[1])); } return true; } return false; } }

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0130.00718.43
8.3.50.0230.01222.07
8.3.40.0090.00919.00
8.3.30.0030.01018.99
8.3.20.0050.00220.34
8.3.10.0000.00820.66
8.3.00.0080.00019.51
8.2.180.0100.00716.75
8.2.170.0120.00322.96
8.2.160.0030.01220.52
8.2.150.0080.00324.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0070.00022.23
8.2.110.0080.00020.35
8.2.100.0080.00418.09
8.2.90.0030.00519.00
8.2.80.0000.00817.97
8.2.70.0030.00617.75
8.2.60.0090.00018.16
8.2.50.0000.00818.07
8.2.40.0040.00419.88
8.2.30.0030.00520.02
8.2.20.0040.00417.89
8.2.10.0040.00418.14
8.2.00.0040.00417.75
8.1.280.0000.02125.92
8.1.270.0040.00422.19
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0090.00023.80
8.1.230.0090.00319.09
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0050.00318.57
8.1.160.0070.00022.00
8.1.150.0040.00418.93
8.1.140.0040.00417.38
8.1.130.0030.00317.83
8.1.120.0000.00717.42
8.1.110.0040.00417.44
8.1.100.0050.00317.39
8.1.90.0030.00517.50
8.1.80.0070.00017.44
8.1.70.0000.00717.38
8.1.60.0000.00817.57
8.1.50.0050.00317.51
8.1.40.0070.00017.40
8.1.30.0000.00817.56
8.1.20.0080.00017.65
8.1.10.0040.00417.36
8.1.00.0040.00417.45
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0070.00018.33
8.0.270.0070.00017.26
8.0.260.0060.00017.30
8.0.250.0000.00716.93
8.0.240.0040.00416.96
8.0.230.0030.00317.01
8.0.220.0000.00716.97
8.0.210.0030.00416.84
8.0.200.0030.00317.03
8.0.190.0050.00317.08
8.0.180.0000.00816.96
8.0.170.0080.00016.86
8.0.160.0030.00316.83
8.0.150.0000.00716.98
8.0.140.0070.00016.80
8.0.130.0060.00013.37
8.0.120.0090.00016.95
8.0.110.0040.00416.92
8.0.100.0040.00417.02
8.0.90.0030.00516.74
8.0.80.0100.01017.00
8.0.70.0040.00417.00
8.0.60.0070.00016.76
8.0.50.0000.00716.87
8.0.30.0120.00917.08
8.0.20.0090.00917.40
8.0.10.0070.00016.96
8.0.00.0090.01016.81
7.4.330.0000.00515.09
7.4.320.0000.00716.59
7.4.300.0000.00816.52
7.4.290.0000.00716.46
7.4.280.0060.00316.63
7.4.270.0040.00416.65
7.4.260.0040.00316.60
7.4.250.0040.00416.38
7.4.240.0030.00316.60
7.4.230.0070.00016.67
7.4.220.0060.01616.48
7.4.210.0040.01116.46
7.4.200.0000.00716.40
7.4.160.0080.00816.38
7.4.150.0150.00617.40
7.4.140.0100.00817.86
7.4.130.0130.00616.50
7.4.120.0020.01416.47
7.4.110.0030.01316.46
7.4.100.0100.01016.63
7.4.90.0140.00316.73
7.4.80.0110.00819.39
7.4.70.0070.01016.54
7.4.60.0070.01016.67
7.4.50.0000.00416.16
7.4.40.0100.01016.38
7.4.30.0150.00016.69
7.4.00.0060.00914.98
7.3.330.0000.00513.21
7.3.320.0060.00013.37
7.3.310.0030.00316.25
7.3.300.0000.00716.36
7.3.290.0140.00716.38
7.3.280.0070.01016.35
7.3.270.0080.01217.40
7.3.260.0090.00916.38
7.3.250.0110.00716.60
7.3.240.0100.00716.41
7.3.230.0150.00316.42
7.3.210.0090.00916.33
7.3.200.0070.01019.39
7.3.190.0070.01116.61
7.3.180.0160.00016.57
7.3.170.0060.00916.54
7.3.160.0080.00816.37
7.3.10.0100.00416.75
7.3.00.0180.00016.57
7.2.330.0040.01416.64
7.2.320.0080.00816.62
7.2.310.0110.00716.80
7.2.300.0090.00616.72
7.2.290.0100.01316.76
7.2.130.0150.00716.41
7.2.120.0170.00316.78
7.2.110.0060.00616.63
7.2.100.0190.00316.73
7.2.90.0190.00016.58
7.2.80.0170.00616.79
7.2.70.0120.00616.61
7.2.60.0130.01316.66
7.2.50.0100.01416.81
7.2.40.0210.00716.48
7.2.30.0230.00716.18
7.2.20.0120.00916.73
7.2.10.0150.02216.43
7.2.00.0150.00717.96
7.1.250.0210.00415.29
7.1.200.0070.00415.71
7.1.100.0100.00018.03
7.1.70.0080.00016.95
7.1.60.0070.01719.32
7.1.50.0070.01416.83
7.1.00.0000.07722.37
7.0.200.0060.00316.85
7.0.140.0130.06322.12
7.0.70.4970.04320.03
7.0.60.0070.07719.97
7.0.50.0030.09017.93
7.0.40.0100.08020.08
7.0.30.0200.04020.06
7.0.20.0270.04020.09
7.0.10.0230.07020.05
7.0.00.0100.08020.23
5.6.280.0030.07721.07
5.6.210.0070.08320.77
5.6.200.0030.07318.18
5.6.190.0070.04320.33
5.6.180.0100.07720.61
5.6.170.0470.07320.61
5.6.160.0070.05020.48
5.6.150.0070.05318.20
5.6.140.0030.04018.16
5.6.130.0030.08018.27
5.6.120.0170.04721.15
5.6.110.0070.08320.98
5.6.100.0200.07321.11
5.6.90.0130.08021.00
5.6.80.0070.08020.39
5.6.70.0100.06720.40
5.5.350.0030.03320.47
5.5.340.0030.04018.02
5.5.330.0100.08020.14
5.5.320.0000.06020.44
5.5.310.0270.07720.51
5.5.300.0070.05018.09
5.5.290.0070.06317.95
5.5.280.0030.06720.89
5.5.270.0070.05320.77
5.5.260.0030.08720.85
5.5.250.0030.08320.54
5.5.240.0000.08720.13
5.4.450.0470.04319.16
5.4.440.0200.04319.27
5.4.430.0200.03719.41
5.4.420.0630.00019.36
5.4.410.0670.00019.33
5.4.400.0600.00019.02
5.4.390.0630.00019.03
5.4.380.0630.00019.16
5.4.370.0630.00019.05
5.4.360.0670.00019.11
5.4.350.0670.00018.99
5.4.340.0700.00019.02
5.4.320.0040.04312.50
5.4.310.0050.03912.50
5.4.300.0110.03312.50
5.4.290.0030.04512.50
5.4.280.0090.03712.40
5.4.270.0080.04012.40
5.4.260.0060.03812.39
5.4.250.0070.03712.39
5.4.240.0080.03612.40
5.4.230.0040.04012.39
5.4.220.0070.03612.39
5.4.210.0070.03812.39
5.4.200.0050.03912.39
5.4.190.0030.04112.39
5.4.180.0060.03512.38
5.4.170.0060.03812.39
5.4.160.0050.03612.40
5.4.150.0030.03912.39
5.4.140.0050.04112.07
5.4.130.0080.03412.07
5.4.120.0050.03812.02
5.4.110.0040.04012.02
5.4.100.0040.03912.02
5.4.90.0130.03112.02
5.4.80.0130.03312.02
5.4.70.0060.03712.01
5.4.60.0070.03412.02
5.4.50.0080.03912.01
5.4.40.0040.03912.00
5.4.30.0060.03612.00
5.4.20.0040.03812.00
5.4.10.0050.03712.00
5.4.00.0100.05311.49
5.3.290.0140.05712.80
5.3.280.0090.03812.71
5.3.270.0100.03812.72
5.3.260.0100.03612.72
5.3.250.0060.03812.72
5.3.240.0070.04112.72
5.3.230.0070.03812.71
5.3.220.0060.03912.68
5.3.210.0070.04212.68
5.3.200.0090.04412.68
5.3.190.0040.04012.68
5.3.180.0100.03412.67
5.3.170.0040.04212.67
5.3.160.0040.04012.68
5.3.150.0040.04212.67
5.3.140.0070.03512.66
5.3.130.0030.04112.66
5.3.120.0060.04012.66
5.3.110.0110.04112.66
5.3.100.0080.04112.12
5.3.90.0060.04012.11
5.3.80.0080.03612.09
5.3.70.0090.03512.09
5.3.60.0090.03412.08
5.3.50.0060.03912.02
5.3.40.0030.04012.03
5.3.30.0060.05111.99
5.3.20.0090.03711.77
5.3.10.0070.03811.73
5.3.00.0070.04111.71
5.2.170.0070.0299.22
5.2.160.0050.0299.22
5.2.150.0060.0329.22
5.2.140.0020.0349.22
5.2.130.0080.0289.18
5.2.120.0060.0299.18
5.2.110.0060.0299.19
5.2.100.0060.0299.18
5.2.90.0060.0319.18
5.2.80.0070.0319.18
5.2.70.0030.0359.18
5.2.60.0070.0309.13
5.2.50.0030.0349.09
5.2.40.0060.0349.07
5.2.30.0070.0389.05
5.2.20.0080.0299.05
5.2.10.0050.0288.96
5.2.00.0030.0308.82
5.1.60.0050.0238.10
5.1.50.0040.0258.10
5.1.40.0030.0258.08
5.1.30.0050.0308.43
5.1.20.0080.0238.46
5.1.10.0050.0268.18
5.1.00.0050.0258.18
5.0.50.0040.0216.66
5.0.40.0060.0186.52
5.0.30.0080.0286.33
5.0.20.0060.0206.30
5.0.10.0040.0206.27
5.0.00.0030.0336.27
4.4.90.0060.0234.78
4.4.80.0050.0214.75
4.4.70.0050.0154.76
4.4.60.0050.0194.76
4.4.50.0040.0154.77
4.4.40.0030.0264.71
4.4.30.0030.0184.76
4.4.20.0030.0154.85
4.4.10.0010.0184.85
4.4.00.0030.0254.76
4.3.110.0020.0164.66
4.3.100.0010.0164.66
4.3.90.0030.0144.63
4.3.80.0030.0254.58
4.3.70.0020.0264.63
4.3.60.0040.0134.62
4.3.50.0050.0144.63
4.3.40.0060.0274.54
4.3.30.0030.0153.30
4.3.20.0030.0193.28
4.3.10.0030.0163.24
4.3.00.0000.02013.59

preferences:
47.08 ms | 400 KiB | 5 Q