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()); print_r($R); 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.70.0100.00616.38
8.3.60.0120.00918.43
8.3.50.0150.00521.96
8.3.40.0070.01118.79
8.3.30.0070.00719.04
8.3.20.0040.00420.38
8.3.10.0050.00320.65
8.3.00.0060.00319.42
8.2.180.0120.00318.66
8.2.170.0040.01122.96
8.2.160.0070.00720.47
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0070.00022.09
8.2.110.0030.00622.34
8.2.100.0090.00317.91
8.2.90.0030.00517.88
8.2.80.0030.00617.97
8.2.70.0040.00418.03
8.2.60.0060.00318.22
8.2.50.0000.00818.10
8.2.40.0050.00319.94
8.2.30.0000.00818.00
8.2.20.0000.00817.82
8.2.10.0000.00818.13
8.2.00.0000.00717.79
8.1.280.0090.00925.92
8.1.270.0040.00422.13
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00623.90
8.1.230.0030.00719.10
8.1.220.0030.00717.78
8.1.210.0040.00418.77
8.1.200.0090.00017.47
8.1.190.0050.00317.23
8.1.180.0000.00818.10
8.1.170.0040.00418.46
8.1.160.0040.00421.97
8.1.150.0080.00018.91
8.1.140.0000.00717.33
8.1.130.0070.00017.83
8.1.120.0040.00417.45
8.1.110.0030.00517.47
8.1.100.0000.00717.37
8.1.90.0040.00417.50
8.1.80.0000.00817.46
8.1.70.0040.00417.42
8.1.60.0040.00417.50
8.1.50.0030.00517.60
8.1.40.0050.00317.39
8.1.30.0040.00417.58
8.1.20.0000.00717.64
8.1.10.0000.00817.49
8.1.00.0000.00717.33
8.0.300.0040.00419.73
8.0.290.0060.00316.63
8.0.280.0030.00318.38
8.0.270.0000.00717.17
8.0.260.0030.00317.22
8.0.250.0000.00716.99
8.0.240.0000.00716.91
8.0.230.0030.00317.01
8.0.220.0070.00017.00
8.0.210.0000.00716.89
8.0.200.0070.00017.04
8.0.190.0000.00716.86
8.0.180.0000.00817.00
8.0.170.0040.00416.94
8.0.160.0000.00717.01
8.0.150.0050.00216.86
8.0.140.0050.00316.80
8.0.130.0000.00613.35
8.0.120.0040.00416.89
8.0.110.0050.00216.95
8.0.100.0000.00716.84
8.0.90.0000.00717.00
8.0.80.0100.01016.96
8.0.70.0070.00016.86
8.0.60.0070.00016.96
8.0.50.0040.00416.84
8.0.30.0140.00417.21
8.0.20.0080.01117.40
8.0.10.0040.00416.97
8.0.00.0080.01416.74
7.4.330.0060.00015.00
7.4.320.0040.00416.61
7.4.300.0030.00316.45
7.4.290.0040.00416.41
7.4.280.0050.00316.60
7.4.270.0070.00016.46
7.4.260.0080.00016.50
7.4.250.0080.00016.46
7.4.240.0020.00516.59
7.4.230.0070.00016.63
7.4.220.0120.01416.54
7.4.210.0060.00916.44
7.4.200.0030.00316.61
7.4.160.0080.00816.49
7.4.150.0090.01217.40
7.4.140.0080.01017.86
7.4.130.0070.01116.60
7.4.120.0130.00616.49
7.4.110.0100.01116.43
7.4.100.0110.00916.66
7.4.90.0160.00716.56
7.4.80.0100.01319.39
7.4.70.0110.00816.73
7.4.60.0070.01016.45
7.4.50.0060.00016.61
7.4.40.0110.00516.41
7.4.30.0120.00916.50
7.4.00.0060.00914.98
7.3.330.0020.00313.21
7.3.320.0000.00513.20
7.3.310.0070.00016.41
7.3.300.0000.00716.23
7.3.290.0030.01116.29
7.3.280.0100.00716.32
7.3.270.0160.00417.40
7.3.260.0110.01116.46
7.3.250.0120.00616.37
7.3.240.0140.00416.56
7.3.230.0060.00916.48
7.3.210.0070.01416.36
7.3.200.0140.01019.39
7.3.190.0090.00916.38
7.3.180.0030.01516.41
7.3.170.0060.01016.53
7.3.160.0080.00816.51
7.3.10.0110.00716.15
7.3.00.0150.00516.08
7.2.330.0140.00316.81
7.2.320.0100.01016.67
7.2.310.0070.01416.83
7.2.300.0100.00716.71
7.2.290.0130.00716.77
7.2.130.0120.00616.71
7.2.120.0100.01016.93
7.2.110.0120.00416.52
7.2.100.0060.00916.33
7.2.90.0090.00916.33
7.2.80.0070.01116.52
7.2.70.0090.01216.45
7.2.60.0150.00916.88
7.2.50.0180.01116.65
7.2.40.0190.00616.80
7.2.30.0140.00716.45
7.2.20.0170.00716.74
7.2.10.0090.00916.44
7.2.00.0130.00618.08
7.1.250.0070.00915.47
7.1.100.0000.01118.20
7.1.70.0000.01117.26
7.1.60.0000.02419.32
7.1.50.0100.01316.93
7.1.00.0030.07322.51
7.0.200.0060.00316.82
7.0.140.0030.07321.97
7.0.60.0070.05320.05
7.0.50.0030.07017.86
7.0.40.0000.04720.11
7.0.30.0470.06320.24
7.0.20.0230.05020.24
7.0.10.0070.07020.21
7.0.00.0030.04720.23
5.6.280.0000.07720.93
5.6.210.0070.04020.67
5.6.200.0030.04318.13
5.6.190.0170.06320.57
5.6.180.0370.06320.50
5.6.170.0200.05720.51
5.6.160.0100.06720.52
5.6.150.0030.05718.29
5.6.140.0000.04318.14
5.6.130.0070.07318.28
5.6.120.0070.08321.09
5.6.110.0030.08321.00
5.6.100.0100.04021.02
5.6.90.0100.08320.97
5.6.80.0030.04320.52
5.5.350.0200.03020.43
5.5.340.0070.04718.07
5.5.330.0030.04020.13
5.5.320.0130.08320.32
5.5.310.0130.06720.26
5.5.300.0030.08318.05
5.5.290.0100.08017.95
5.5.280.0070.08320.88
5.5.270.0030.04020.80
5.5.260.0070.05720.77
5.5.250.0070.07720.50
5.5.240.0070.06020.16
5.4.450.0500.04719.29
5.4.440.0200.03319.32
5.4.430.0200.03719.57
5.4.420.0670.00019.21
5.4.410.0630.00019.52
5.4.400.0630.00018.92
5.4.390.0630.00019.18
5.4.380.0670.00019.07
5.4.370.0600.00019.12
5.4.360.0600.00019.03
5.4.350.0630.00019.03
5.4.340.0630.00019.03
5.4.320.0040.03812.50
5.4.310.0060.04012.50
5.4.300.0060.03612.50
5.4.290.0060.04312.50
5.4.280.0060.03612.40
5.4.270.0040.03812.40
5.4.260.0020.04312.39
5.4.250.0060.04112.40
5.4.240.0080.03712.40
5.4.230.0050.05112.39
5.4.220.0100.03512.39
5.4.210.0050.03812.39
5.4.200.0070.03712.39
5.4.190.0070.03512.39
5.4.180.0070.03512.38
5.4.170.0040.03912.40
5.4.160.0050.03612.40
5.4.150.0060.03712.39
5.4.140.0050.04512.07
5.4.130.0070.03412.06
5.4.120.0060.03612.02
5.4.110.0070.04312.02
5.4.100.0060.03712.01
5.4.90.0030.04012.02
5.4.80.0040.04012.02
5.4.70.0080.03312.01
5.4.60.0070.03412.01
5.4.50.0060.04012.01
5.4.40.0060.04212.00
5.4.30.0070.03512.00
5.4.20.0070.03512.00
5.4.10.0080.04012.00
5.4.00.0060.04711.48
5.3.290.0080.03912.80
5.3.280.0070.03812.71
5.3.270.0070.04012.72
5.3.260.0080.04112.72
5.3.250.0060.03812.72
5.3.240.0060.03812.72
5.3.230.0040.04012.71
5.3.220.0030.04312.68
5.3.210.0050.04012.68
5.3.200.0050.03812.68
5.3.190.0050.03912.68
5.3.180.0070.03712.67
5.3.170.0060.03712.67
5.3.160.0070.03612.68
5.3.150.0050.03912.68
5.3.140.0090.03612.66
5.3.130.0050.04012.66
5.3.120.0070.04912.66
5.3.110.0070.03812.66
5.3.100.0090.04012.12
5.3.90.0080.03512.11
5.3.80.0080.03412.09
5.3.70.0050.03712.09
5.3.60.0040.04612.08
5.3.50.0090.04412.03
5.3.40.0040.04012.03
5.3.30.0100.03611.98
5.3.20.0050.03611.76
5.3.10.0070.03411.73
5.3.00.0050.03811.71
5.2.170.0040.0329.22
5.2.160.0050.0319.22
5.2.150.0060.0299.22
5.2.140.0040.0349.22
5.2.130.0070.0269.18
5.2.120.0030.0309.18
5.2.110.0090.0339.18
5.2.100.0050.0299.18
5.2.90.0040.0299.18
5.2.80.0080.0319.18
5.2.70.0100.0369.17
5.2.60.0050.0389.13
5.2.50.0040.0309.09
5.2.40.0050.0299.07
5.2.30.0070.0309.05
5.2.20.0040.0309.05
5.2.10.0070.0268.96
5.2.00.0060.0328.82
5.1.60.0090.0218.11
5.1.50.0060.0238.10
5.1.40.0040.0258.08
5.1.30.0040.0268.43
5.1.20.0040.0278.46
5.1.10.0030.0288.18
5.1.00.0070.0248.18
5.0.50.0050.0206.66
5.0.40.0030.0206.52
5.0.30.0030.0326.33
5.0.20.0040.0196.30
5.0.10.0030.0206.28
5.0.00.0030.0316.27
4.4.90.0050.0234.78
4.4.80.0020.0174.76
4.4.70.0030.0154.76
4.4.60.0020.0164.75
4.4.50.0020.0204.77
4.4.40.0060.0224.71
4.4.30.0030.0154.76
4.4.20.0040.0174.84
4.4.10.0040.0164.85
4.4.00.0040.0244.76
4.3.110.0030.0194.67
4.3.100.0030.0154.66
4.3.90.0040.0134.63
4.3.80.0030.0244.58
4.3.70.0030.0144.63
4.3.60.0040.0174.63
4.3.50.0020.0174.63
4.3.40.0020.0264.54
4.3.30.0030.0223.30
4.3.20.0010.0173.29
4.3.10.0030.0173.23
4.3.00.0030.01713.59

preferences:
62.84 ms | 401 KiB | 5 Q