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->ToArray()); 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; } public function ToArray() { return array("Requests" => $this->Requests); } }

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.0060.00918.43
8.3.50.0160.00921.97
8.3.40.0110.00718.83
8.3.30.0100.00319.24
8.3.20.0000.00820.13
8.3.10.0040.00420.51
8.3.00.0080.00019.38
8.2.180.0070.01016.75
8.2.170.0090.00922.96
8.2.160.0060.00820.29
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0040.00422.22
8.2.110.0030.00720.51
8.2.100.0090.00317.91
8.2.90.0070.00019.36
8.2.80.0030.00617.97
8.2.70.0000.00817.49
8.2.60.0060.00317.80
8.2.50.0040.00418.07
8.2.40.0000.00819.93
8.2.30.0030.00618.14
8.2.20.0040.00417.69
8.2.10.0000.00818.14
8.2.00.0070.00017.85
8.1.280.0140.00725.92
8.1.270.0060.00322.18
8.1.260.0080.00026.35
8.1.250.0030.00628.09
8.1.240.0050.00523.92
8.1.230.0070.00319.01
8.1.220.0050.00317.79
8.1.210.0080.00018.77
8.1.200.0030.00617.23
8.1.190.0050.00317.35
8.1.180.0040.00418.10
8.1.170.0050.00318.69
8.1.160.0070.00022.02
8.1.150.0000.00718.89
8.1.140.0050.00217.45
8.1.130.0030.00317.79
8.1.120.0040.00417.46
8.1.110.0030.00517.45
8.1.100.0000.00717.46
8.1.90.0050.00217.48
8.1.80.0070.00017.38
8.1.70.0000.00717.42
8.1.60.0040.00417.47
8.1.50.0000.00817.43
8.1.40.0040.00417.52
8.1.30.0030.00517.65
8.1.20.0000.00717.50
8.1.10.0000.00717.37
8.1.00.0000.00817.52
8.0.300.0000.00718.77
8.0.290.0040.00416.88
8.0.280.0030.00318.45
8.0.270.0000.00717.23
8.0.260.0030.00317.31
8.0.250.0030.00316.91
8.0.240.0060.00316.92
8.0.230.0000.00716.91
8.0.220.0030.00317.03
8.0.210.0030.00316.87
8.0.200.0000.00716.85
8.0.190.0030.00317.04
8.0.180.0020.00516.94
8.0.170.0000.00816.95
8.0.160.0020.00516.90
8.0.150.0030.00316.95
8.0.140.0000.00716.98
8.0.130.0000.00613.43
8.0.120.0040.00416.89
8.0.110.0080.00016.78
8.0.100.0060.00317.00
8.0.90.0050.00316.84
8.0.80.0060.00916.99
8.0.70.0040.00416.82
8.0.60.0000.00716.99
8.0.50.0040.00416.78
8.0.30.0090.00917.10
8.0.20.0050.01317.40
8.0.10.0030.00517.03
8.0.00.0100.01116.80
7.4.330.0000.00515.15
7.4.320.0030.00316.44
7.4.300.0060.00016.57
7.4.290.0040.00416.50
7.4.280.0040.00416.41
7.4.270.0000.00616.51
7.4.260.0040.00416.61
7.4.250.0040.00416.52
7.4.240.0000.00716.53
7.4.230.0070.00016.72
7.4.220.0060.01316.70
7.4.210.0100.00316.62
7.4.200.0070.00016.32
7.4.160.0090.00616.66
7.4.150.0090.00917.40
7.4.140.0110.00717.86
7.4.130.0080.00816.41
7.4.120.0140.00616.52
7.4.110.0130.00716.44
7.4.100.0070.01116.51
7.4.90.0070.01116.37
7.4.80.0120.00619.39
7.4.70.0070.01116.64
7.4.60.0070.01116.44
7.4.50.0000.00816.28
7.4.40.0080.00816.42
7.4.30.0170.00016.38
7.4.00.0050.01115.06
7.3.330.0030.00313.30
7.3.320.0000.00513.39
7.3.310.0050.00216.44
7.3.300.0070.00016.29
7.3.290.0070.00716.50
7.3.280.0070.00916.44
7.3.270.0130.00417.40
7.3.260.0180.00016.55
7.3.250.0130.00416.50
7.3.240.0060.01016.39
7.3.230.0120.00616.43
7.3.210.0000.01616.35
7.3.200.0030.01619.39
7.3.190.0060.01316.37
7.3.180.0030.01716.30
7.3.170.0060.01616.44
7.3.160.0060.01016.41
7.3.120.0140.00315.07
7.3.110.0090.00914.91
7.3.100.0040.00714.62
7.3.90.0060.00914.92
7.3.80.0160.00014.71
7.3.70.0110.00414.89
7.3.60.0110.00414.80
7.3.50.0070.00714.85
7.3.40.0030.00714.87
7.3.30.0120.00315.06
7.3.20.0060.00316.89
7.3.10.0060.00816.64
7.3.00.0090.00416.49
7.2.330.0100.01016.88
7.2.320.0130.00316.49
7.2.310.0060.01516.86
7.2.300.0140.00316.70
7.2.290.0190.00316.64
7.2.250.0120.00615.06
7.2.240.0070.01315.15
7.2.230.0060.01315.09
7.2.220.0070.01114.88
7.2.210.0030.01215.36
7.2.200.0030.01314.93
7.2.190.0040.00814.85
7.2.180.0070.00715.18
7.2.170.0090.00615.09
7.2.130.0070.01016.88
7.2.120.0060.00316.85
7.2.110.0070.00716.55
7.2.100.0040.00716.69
7.2.90.0040.00416.80
7.2.80.0000.01316.85
7.2.70.0100.00716.83
7.2.60.0110.00416.68
7.2.50.0120.00316.95
7.2.40.0030.01416.59
7.2.30.0100.00616.87
7.2.20.0100.00616.93
7.2.10.0070.00316.52
7.2.00.0110.00318.35
7.1.330.0000.01315.72
7.1.320.0040.01415.80
7.1.310.0070.00715.63
7.1.300.0000.01415.72
7.1.290.0100.00315.81
7.1.280.0000.01416.04
7.1.270.0000.00915.85
7.1.260.0070.00715.81
7.1.250.0040.01115.64
7.1.240.0070.00715.67
7.1.230.0000.01115.62
7.1.220.0070.00715.49
7.1.210.0040.01115.55
7.1.200.0030.00815.73
7.1.190.0090.00615.49
7.1.180.0000.01315.42
7.1.170.0060.00615.71
7.1.160.0090.00615.64
7.1.150.0040.00815.67
7.1.140.0100.01015.69
7.1.130.0090.00615.64
7.1.120.0100.00315.69
7.1.110.0070.00715.85
7.1.100.0090.00417.01
7.1.90.0030.01015.63
7.1.80.0090.00315.73
7.1.70.0060.00616.36
7.1.60.0040.01117.57
7.1.50.0120.00216.29
7.1.40.0140.00715.73
7.1.30.0060.00615.81
7.1.20.0140.00315.74
7.1.10.0070.00715.69
7.1.00.0050.04019.13
7.0.330.0040.00415.07
7.0.320.0130.00315.43
7.0.310.0030.00915.10
7.0.300.0060.00315.60
7.0.290.0090.00915.37
7.0.280.0070.00714.99
7.0.270.0060.00915.18
7.0.260.0000.00914.93
7.0.250.0000.01415.30
7.0.240.0040.01215.09
7.0.230.0130.00314.99
7.0.220.0000.00915.23
7.0.210.0110.00415.36
7.0.200.0050.00716.10
7.0.190.0140.00715.41
7.0.180.0150.00015.46
7.0.170.0070.00715.50
7.0.160.0080.00815.51
7.0.150.0040.01115.43
7.0.140.0040.03918.66
7.0.130.0050.00515.53
7.0.120.0080.00415.46
7.0.110.0000.01615.11
7.0.100.0040.00815.15
7.0.90.0030.00915.12
7.0.80.0080.00415.31
7.0.70.0040.01115.39
7.0.60.0040.02717.62
7.0.50.0050.04716.71
7.0.40.0050.03416.69
7.0.30.0270.04116.50
7.0.20.0080.02716.81
7.0.10.0000.04816.77
7.0.00.0090.02816.85
5.6.380.0050.00314.16
5.6.370.0000.01114.59
5.6.360.0090.00314.41
5.6.350.0000.00914.43
5.6.340.0070.00714.04
5.6.330.0030.00714.29
5.6.320.0140.00314.61
5.6.310.0170.00714.46
5.6.300.0060.00914.39
5.6.290.0030.01014.31
5.6.280.0000.04517.60
5.6.270.0070.01014.22
5.6.260.0000.01014.05
5.6.250.0060.00314.43
5.6.240.0070.00714.38
5.6.230.0120.00013.89
5.6.220.0030.01114.35
5.6.210.0050.04117.44
5.6.200.0100.04316.29
5.6.190.0070.02517.38
5.6.180.0240.04117.33
5.6.170.0150.03117.32
5.6.160.0050.02617.52
5.6.150.0100.01816.08
5.6.140.0050.02216.26
5.6.130.0030.04716.21
5.6.120.0100.04517.49
5.6.110.0100.02817.68
5.6.100.0050.04317.79
5.6.90.0080.03817.74
5.6.80.0100.03817.09
5.6.70.0060.00614.16
5.6.60.0170.00314.38
5.6.50.0120.00314.57
5.6.40.0040.00814.23
5.6.30.0030.01314.30
5.6.20.0030.01013.78
5.6.10.0030.00714.06
5.6.00.0090.00614.40
5.5.380.0000.01311.36
5.5.370.0080.00311.03
5.5.360.0030.00511.37
5.5.350.0130.04115.72
5.5.340.0060.03714.44
5.5.330.0050.02715.64
5.5.320.0170.02215.88
5.5.310.0170.04115.91
5.5.300.0050.03814.70
5.5.290.0110.03714.62
5.5.280.0030.04715.87
5.5.270.0120.02315.94
5.5.260.0020.02716.04
5.5.250.0110.02516.00
5.5.240.0150.04015.55
5.5.230.0060.00611.05
5.5.220.0150.00311.18
5.5.210.0030.01011.19
5.5.200.0000.00811.00
5.5.190.0060.00611.22
5.5.180.0060.00611.09
5.5.170.0030.00711.00
5.5.160.0030.01011.29
5.5.150.0060.00310.99
5.5.140.0030.00710.92
5.5.130.0000.01111.20
5.5.120.0070.00311.09
5.5.110.0030.00511.29
5.5.100.0060.00610.91
5.5.90.0060.00611.09
5.5.80.0100.00711.19
5.5.70.0090.00011.02
5.5.60.0090.00310.92
5.5.50.0030.01011.16
5.5.40.0050.00911.10
5.5.30.0140.00410.99
5.5.20.0040.00711.16
5.5.10.0050.00910.91
5.5.00.0140.00011.14
5.4.450.0180.01715.42
5.4.440.0150.02215.05
5.4.430.0000.03015.19
5.4.420.0350.00215.24
5.4.410.0330.00215.35
5.4.400.0350.00015.09
5.4.390.0320.00315.03
5.4.380.0350.00414.97
5.4.370.0320.00215.09
5.4.360.0370.00214.91
5.4.350.0330.00115.02
5.4.340.0320.00414.93
5.4.330.0070.00410.96
5.4.320.0020.02411.70
5.4.310.0050.02211.83
5.4.300.0030.02111.81
5.4.290.0140.01911.76
5.4.280.0040.02311.57
5.4.270.0050.02211.59
5.4.260.0070.01811.84
5.4.250.0070.02011.72
5.4.240.0060.02111.72
5.4.230.0060.02411.82
5.4.220.0080.02211.54
5.4.210.0050.01911.84
5.4.200.0100.02211.70
5.4.190.0060.02311.63
5.4.180.0060.03011.63
5.4.170.0080.02511.80
5.4.160.0090.01911.55
5.4.150.0090.02311.72
5.4.140.0080.02411.52
5.4.130.0040.02211.52
5.4.120.0060.02511.48
5.4.110.0070.02111.57
5.4.100.0070.02011.48
5.4.90.0070.02211.48
5.4.80.0020.02411.54
5.4.70.0060.01711.57
5.4.60.0130.02311.53
5.4.50.0030.02211.50
5.4.40.0060.02411.57
5.4.30.0040.02411.62
5.4.20.0050.02211.52
5.4.10.0090.02111.54
5.4.00.0020.02511.34
5.3.290.0070.02211.76
5.3.280.0090.02211.66
5.3.270.0090.02311.62
5.3.260.0020.02611.59
5.3.250.0050.02511.73
5.3.240.0060.02411.49
5.3.230.0060.02111.70
5.3.220.0040.02211.56
5.3.210.0060.02311.63
5.3.200.0070.02211.68
5.3.190.0050.02411.63
5.3.180.0120.01911.73
5.3.170.0020.02511.56
5.3.160.0040.02211.72
5.3.150.0090.01811.71
5.3.140.0040.02311.57
5.3.130.0090.02111.65
5.3.120.0070.02211.55
5.3.110.0090.02211.68
5.3.100.0040.02211.43
5.3.90.0040.02211.46
5.3.80.0090.02111.32
5.3.70.0040.02311.31
5.3.60.0060.02011.23
5.3.50.0040.02311.33
5.3.40.0040.02311.20
5.3.30.0060.02011.21
5.3.20.0070.02011.24
5.3.10.0020.02611.11
5.3.00.0060.02311.05
5.2.170.0080.0149.33
5.2.160.0060.0149.32
5.2.150.0060.0169.42
5.2.140.0060.0199.32
5.2.130.0040.0189.30
5.2.120.0050.0179.37
5.2.110.0020.0199.35
5.2.100.0030.0199.38
5.2.90.0060.0169.31
5.2.80.0040.0199.30
5.2.70.0040.0179.34
5.2.60.0050.0189.35
5.2.50.0030.0169.26
5.2.40.0040.0179.32
5.2.30.0040.0159.25
5.2.20.0050.0269.24
5.2.10.0060.0179.19
5.2.00.0050.0209.12
5.1.60.0050.0188.76
5.1.50.0030.0158.76
5.1.40.0030.0168.75
5.1.30.0060.0138.93
5.1.20.0050.0158.94
5.1.10.0070.0148.80
5.1.00.0070.0138.80
5.0.50.0040.0148.04
5.0.40.0040.0117.97
5.0.30.0050.0177.88
5.0.20.0030.0117.86
5.0.10.0040.0137.85
5.0.00.0020.0207.85
4.4.90.0040.0077.10
4.4.80.0010.0097.09
4.4.70.0030.0107.09
4.4.60.0010.0117.09
4.4.50.0040.0097.10
4.4.40.0020.0167.07
4.4.30.0020.0097.09
4.4.20.0060.0137.13
4.4.10.0010.0147.13
4.4.00.0020.0147.09
4.3.110.0030.0097.04
4.3.100.0020.0107.04
4.3.90.0030.0097.03
4.3.80.0040.0127.00
4.3.70.0040.0107.03
4.3.60.0040.0077.02
4.3.50.0020.0127.03
4.3.40.0060.0116.98
4.3.30.0020.0146.36
4.3.20.0010.0106.35
4.3.10.0030.0116.33
4.3.00.0020.00811.51

preferences:
60.15 ms | 401 KiB | 5 Q