3v4l.org

run code in 300+ PHP versions simultaneously
<?php $accessToken = function(){ $array = array( "foo" => "bar", "bar" => "foo" ); $obj = json_encode($array); $obj = json_decode($obj); return $obj->foo; }; $getInfo = function() use ($accessToken){ $code = $accessToken(); return $code; }; echo $getInfo();

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.5.10.0130.00416.54
8.5.00.0110.01120.09
8.4.150.0020.00114.05
8.4.140.0090.01317.52
8.4.130.0090.01218.77
8.4.120.0100.00524.14
8.4.110.0070.00218.79
8.4.100.0140.00817.89
8.4.90.0110.00918.52
8.4.80.0080.00218.59
8.4.70.0120.00718.03
8.4.60.0110.00918.99
8.4.50.0030.00622.05
8.4.40.0040.00717.97
8.4.30.0090.00617.63
8.4.20.0100.01019.30
8.4.10.0030.01319.30
8.3.280.0080.01718.29
8.3.270.0140.00616.78
8.3.260.0110.00916.65
8.3.250.0130.00518.99
8.3.240.0120.00716.97
8.3.230.0130.00616.60
8.3.220.0130.00618.95
8.3.210.0040.00316.73
8.3.200.0060.00416.39
8.3.190.0110.00817.17
8.3.180.0090.01018.91
8.3.170.0090.00920.46
8.3.160.0070.01117.23
8.3.150.0030.01617.05
8.3.140.0070.01016.70
8.3.130.0060.00318.30
8.3.120.0040.00420.66
8.3.110.0160.00620.94
8.3.100.0130.00324.06
8.3.90.0120.00818.18
8.3.80.0030.00618.18
8.3.70.0120.00316.50
8.3.60.0100.01016.50
8.3.50.0100.00818.30
8.3.40.0170.00318.59
8.3.30.0090.00618.71
8.3.20.0000.00720.13
8.3.10.0040.00422.09
8.3.00.0050.00323.70
8.2.290.0100.00920.41
8.2.280.0040.00418.60
8.2.270.0040.01416.95
8.2.260.0070.01017.04
8.2.250.0000.00816.63
8.2.240.0040.01218.88
8.2.230.0160.00422.58
8.2.220.0030.00737.54
8.2.210.0070.00726.77
8.2.200.0030.00616.75
8.2.190.0120.00316.58
8.2.180.0140.00718.38
8.2.170.0090.00622.96
8.2.160.0110.00320.34
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00022.04
8.2.120.0000.00726.35
8.2.110.0060.00322.20
8.2.100.0000.01117.72
8.2.90.0000.00818.09
8.2.80.0040.00417.97
8.2.70.0050.00317.50
8.2.60.0040.00417.93
8.2.50.0080.00419.06
8.2.40.0040.00421.91
8.2.30.0000.00819.16
8.2.20.0000.00717.98
8.2.10.0080.00018.00
8.2.00.0000.00818.04
8.1.330.0120.00622.01
8.1.320.0090.01016.20
8.1.310.0030.00618.48
8.1.300.0040.00419.66
8.1.290.0030.00718.88
8.1.280.0070.00725.92
8.1.270.0090.00620.41
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0040.00422.14
8.1.230.0030.00822.10
8.1.220.0000.00917.74
8.1.210.0040.00418.77
8.1.200.0060.00317.38
8.1.190.0070.00716.63
8.1.180.0030.00618.10
8.1.170.0050.00318.54
8.1.160.0000.00718.85
8.1.150.0080.00020.13
8.1.140.0040.00417.75
8.1.130.0030.00318.94
8.1.120.0040.00417.51
8.1.110.0040.00417.52
8.1.100.0040.00417.45
8.1.90.0000.00817.42
8.1.80.0000.00717.45
8.1.70.0000.00717.52
8.1.60.0060.00317.59
8.1.50.0030.00617.52
8.1.40.0040.00417.52
8.1.30.0040.00417.59
8.1.20.0040.00417.66
8.1.10.0000.00817.55
8.1.00.0050.00317.37
8.0.300.0050.00219.76
8.0.290.0000.00816.63
8.0.280.0030.00318.49
8.0.270.0030.00317.20
8.0.260.0000.00918.44
8.0.250.0070.00016.86
8.0.240.0030.00316.98
8.0.230.0030.00516.82
8.0.220.0070.00016.89
8.0.210.0000.00716.86
8.0.200.0030.00316.94
8.0.190.0030.00516.91
8.0.180.0070.00016.98
8.0.170.0040.00416.93
8.0.160.0080.00016.86
8.0.150.0000.00716.83
8.0.140.0070.00016.91
8.0.130.0000.00513.36
8.0.120.0040.00416.89
8.0.110.0040.00416.82
8.0.100.0040.00416.72
8.0.90.0030.00516.76
8.0.80.0030.01016.95
8.0.70.0040.00416.86
8.0.60.0050.00316.85
8.0.50.0040.00416.74
8.0.30.0080.01016.90
8.0.20.0120.00817.40
8.0.10.0040.00416.91
8.0.00.0070.01016.71
7.4.330.0050.00015.55
7.4.320.0000.00716.61
7.4.300.0000.00616.42
7.4.290.0040.00216.50
7.4.280.0000.00816.50
7.4.270.0040.00416.43
7.4.260.0040.00416.39
7.4.250.0030.00316.38
7.4.240.0080.00016.52
7.4.230.0070.00016.62
7.4.220.0090.00916.46
7.4.210.0090.00616.70
7.4.200.0000.00716.40
7.4.160.0100.01016.45
7.4.150.0110.00617.40
7.4.140.0120.00917.86
7.4.130.0120.00916.50
7.4.120.0150.00516.56
7.4.110.0100.00616.53
7.4.100.0130.01016.47
7.4.90.0090.01416.55
7.4.80.0080.01219.39
7.4.70.0030.01416.53
7.4.60.0150.00616.51
7.4.50.0060.01016.36
7.4.40.0040.01016.63
7.4.30.0030.01416.55
7.4.00.0070.00714.85
7.3.330.0050.00013.34
7.3.320.0050.00013.24
7.3.310.0030.00316.18
7.3.300.0040.00416.16
7.3.290.0150.00416.29
7.3.280.0060.01116.27
7.3.270.0060.01217.40
7.3.260.0130.01016.57
7.3.250.0100.00816.37
7.3.240.0120.00516.29
7.3.230.0170.00716.52
7.3.210.0030.01316.38
7.3.200.0090.00616.34
7.3.190.0140.00416.35
7.3.180.0080.00816.39
7.3.170.0080.00716.56
7.3.160.0100.00616.36
7.2.330.0000.01816.30
7.2.320.0000.01716.75
7.2.310.0030.01416.70
7.2.300.0130.00316.64
7.2.290.0040.01216.66
7.2.60.0030.00616.95
7.1.200.0080.00315.70
7.1.100.0040.01616.17
7.1.90.3550.00716.48
7.1.80.3780.00316.60
7.1.70.2730.01015.38
7.1.60.4070.01333.20
7.1.50.2840.01732.91
7.1.40.4770.02032.80
7.1.30.5600.01732.77
7.1.20.2960.00732.67
7.1.10.2660.01014.70
7.1.00.4930.01014.76
7.0.240.0100.00616.17
7.0.230.3830.01016.08
7.0.220.3230.00715.82
7.0.210.2690.00714.55
7.0.200.4950.00714.93
7.0.190.3360.00314.91
7.0.180.2760.00314.35
7.0.170.4120.01314.66
7.0.160.3680.01314.66
7.0.150.2660.01014.45
7.0.140.2620.01314.46
7.0.130.2040.01014.57
7.0.120.0230.00314.61
7.0.110.0950.01014.44
7.0.100.0890.00714.62
7.0.90.0100.01014.58
7.0.80.0540.01014.70
7.0.70.0070.01414.43
7.0.60.0110.01114.12
7.0.50.3830.01314.57
7.0.40.4740.01814.82
7.0.30.1670.01014.65
7.0.20.0140.01014.63
7.0.10.0090.01214.77
7.0.00.0220.00914.58

preferences:
159.39 ms | 403 KiB | 5 Q