3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(stdClass $bar) { } foo(new stdClass()); echo("Well, that worked, does this?\n"); foo(new ArrayObject());

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.0080.01218.55
8.3.50.0130.00721.98
8.3.40.0090.00618.97
8.3.30.0060.00818.65
8.3.20.0070.00018.77
8.3.10.0070.00021.05
8.3.00.0040.00419.41
8.2.180.0120.00316.63
8.2.170.0120.00322.96
8.2.160.0080.00520.33
8.2.150.0090.00024.18
8.2.140.0040.00424.66
8.2.130.0030.00726.16
8.2.120.0070.00021.00
8.2.110.0030.00620.44
8.2.100.0040.00817.82
8.2.90.0080.00019.25
8.2.80.0080.00017.97
8.2.70.0080.00017.63
8.2.60.0040.00417.80
8.2.50.0000.00918.07
8.2.40.0040.00418.22
8.2.30.0040.00421.10
8.2.20.0000.00717.61
8.2.10.0070.00017.62
8.2.00.0080.00317.50
8.1.280.0100.01025.92
8.1.270.0080.00023.99
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0070.00322.42
8.1.230.0060.00620.96
8.1.220.0080.00018.77
8.1.210.0040.00418.90
8.1.200.0030.00617.13
8.1.190.0000.00917.41
8.1.180.0030.00618.10
8.1.170.0000.00820.37
8.1.160.0040.00418.79
8.1.150.0040.00518.42
8.1.140.0000.00717.24
8.1.130.0030.00317.68
8.1.120.0000.00717.40
8.1.110.0040.00417.27
8.1.100.0040.00417.23
8.1.90.0000.00717.37
8.1.80.0000.00817.24
8.1.70.0030.00317.19
8.1.60.0040.00417.41
8.1.50.0040.00417.38
8.1.40.0000.00717.43
8.1.30.0080.00017.52
8.1.20.0000.00817.48
8.1.10.0040.00417.55
8.1.00.0040.00417.34
8.0.300.0040.00419.88
8.0.290.0040.00417.04
8.0.280.0050.00318.40
8.0.270.0020.00517.26
8.0.260.0030.00316.79
8.0.250.0050.00316.96
8.0.240.0000.00816.93
8.0.230.0070.00016.84
8.0.220.0030.00316.79
8.0.210.0050.00216.84
8.0.200.0030.00516.95
8.0.190.0070.00416.96
8.0.180.0070.00016.91
8.0.170.0000.00716.96
8.0.160.0080.00016.90
8.0.150.0040.00416.84
8.0.140.0040.00416.82
8.0.130.0060.00013.32
8.0.120.0000.00816.79
8.0.110.0040.00416.67
8.0.100.0040.00416.90
8.0.90.0030.00516.75
8.0.80.0000.02016.86
8.0.70.0040.00416.76
8.0.60.0070.00016.67
8.0.50.0040.00416.88
8.0.30.0060.01317.01
8.0.20.0080.01117.40
8.0.10.0000.00816.92
8.0.00.0080.01316.78
7.4.330.0000.00516.84
7.4.320.0070.00016.34
7.4.300.0000.00616.43
7.4.290.0070.00016.50
7.4.280.0070.00016.54
7.4.270.0070.00016.53
7.4.260.0000.00513.26
7.4.250.0040.00416.51
7.4.240.0030.00316.55
7.4.230.0040.00416.42
7.4.220.0080.00816.48
7.4.210.0080.00716.52
7.4.200.0000.00716.29
7.4.190.0030.00316.50
7.4.160.0130.00316.38
7.4.150.0100.00917.40
7.4.140.0070.01117.86
7.4.130.0080.01316.50
7.4.120.0070.01116.47
7.4.110.0100.01016.38
7.4.100.0030.01316.44
7.4.90.0000.01816.59
7.4.80.0050.01119.39
7.4.70.0120.00416.50
7.4.60.0080.01216.71
7.4.50.0090.00016.52
7.4.40.0040.01522.77
7.4.30.0060.01216.50
7.4.00.0030.01315.06
7.3.330.0000.00513.25
7.3.320.0000.00513.27
7.3.310.0070.00016.33
7.3.300.0000.00716.30
7.3.290.0130.00716.27
7.3.280.0070.00816.24
7.3.270.0070.01017.40
7.3.260.0120.00718.24
7.3.250.0090.01016.47
7.3.240.0100.01016.36
7.3.230.0130.01016.48
7.3.210.0090.01216.43
7.3.200.0090.00919.39
7.3.190.0100.01116.48
7.3.180.0090.00616.45
7.3.170.0060.01516.29
7.3.160.0040.01316.55
7.3.120.0080.00614.87
7.3.10.0060.00616.65
7.3.00.0090.00316.60
7.2.330.0160.00916.27
7.2.320.0150.00316.54
7.2.310.0090.00916.76
7.2.300.0060.01216.72
7.2.290.0090.00816.69
7.2.130.0020.00816.58
7.2.120.0050.01016.74
7.2.110.0060.00616.88
7.2.100.0060.00316.73
7.2.90.0070.00516.89
7.2.80.0080.00516.87
7.2.70.0020.01216.75
7.2.60.0060.00616.89
7.2.50.0080.00616.84
7.2.40.0050.01016.81
7.2.30.0020.00816.83
7.2.20.0050.00816.91
7.2.10.0060.00716.69
7.2.00.0060.00717.70
7.1.250.0000.01015.58
7.1.200.0090.00315.61
7.1.100.0000.01718.10
7.1.70.0050.00217.14
7.1.60.0060.00617.28
7.1.50.0030.00716.79
7.1.40.0110.01116.44
7.1.30.0000.01816.57
7.1.20.0070.00716.86
7.1.10.0000.00816.33
7.1.00.0070.00716.58
7.0.200.0080.00016.61
7.0.190.0000.00716.81
7.0.180.0060.00616.16
7.0.170.0090.00015.96
7.0.160.0000.01216.25
7.0.150.0050.00316.05
7.0.140.0000.01016.29
7.0.130.0070.00016.55
7.0.120.0040.00416.52
7.0.110.0000.00816.43
7.0.100.0000.00716.27
7.0.90.0000.00916.21
7.0.80.0040.01216.57
7.0.70.0070.00316.20
7.0.60.0000.00716.23
7.0.50.0000.00916.15
7.0.40.0040.00714.76
7.0.30.0080.00014.76
7.0.20.0040.00814.76
7.0.10.0030.01014.76
7.0.00.0040.00714.76
5.6.300.0030.04220.81
5.6.290.0030.04020.99
5.6.280.0070.04120.96
5.6.270.0030.04720.89
5.6.260.0070.06220.90
5.6.250.0070.06520.77
5.6.240.0070.08320.84
5.6.230.0030.04021.00
5.6.220.0030.04120.74
5.6.210.0070.03920.82
5.6.200.0060.03920.73
5.6.190.0000.04620.77
5.6.180.0000.04220.92
5.6.170.0130.07520.81
5.6.160.0070.06220.83
5.6.150.0070.04620.81
5.6.140.0000.06020.85
5.6.130.0000.04520.80
5.6.120.0030.04720.76
5.6.110.0030.04620.91
5.6.100.0000.05620.99
5.6.90.0030.06020.84
5.6.80.0030.03920.27
5.6.70.0100.07720.16
5.6.60.0070.03720.20
5.6.50.0070.05220.30
5.6.40.0100.04120.18
5.6.30.0130.03720.12
5.6.20.0040.04320.17
5.6.10.0070.04020.16
5.6.00.0030.04620.29
5.5.380.0030.05617.54
5.5.370.0000.04217.41
5.5.360.0130.03617.54
5.5.350.0000.04517.39
5.5.340.0000.04718.07
5.5.330.0070.07718.12
5.5.320.0030.03918.10
5.5.310.0000.04418.00
5.5.300.0100.07817.83
5.5.290.0100.07117.74
5.5.280.0000.07917.70
5.5.270.0100.03717.99
5.5.260.0030.04218.06
5.5.250.0030.04017.91
5.5.240.0030.06117.50
5.5.230.0030.04117.13
5.5.220.0070.05117.37
5.5.210.0000.06017.48
5.5.200.0200.03717.35
5.5.190.0000.04117.10
5.5.180.0000.04717.46
5.5.160.0030.03817.41
5.5.150.0070.03717.05
5.5.140.0030.04017.05
5.5.130.0060.03517.43
5.5.120.0030.03817.35
5.5.110.0030.04617.43
5.5.100.0070.04617.40
5.5.90.0000.04717.31
5.5.80.0070.03617.28
5.5.70.0030.04417.08
5.5.60.0030.03617.36
5.5.50.0060.03517.28
5.5.40.0030.03617.37
5.5.30.0030.03817.32
5.5.20.0000.04117.25
5.5.10.0030.04017.41
5.5.00.0000.04017.41
5.4.450.0000.06619.32
5.4.440.0030.07919.43
5.4.430.0030.03819.39
5.4.420.0000.08619.54
5.4.410.0060.03519.40
5.4.400.0000.04019.23
5.4.390.0000.06919.07
5.4.380.0030.04419.23
5.4.370.0030.03619.16
5.4.360.0030.04219.05
5.4.350.0030.04118.89
5.4.340.0070.04218.98
5.4.320.0070.04319.22
5.4.310.0000.04019.21
5.4.300.0030.03719.13
5.4.290.0030.04519.11
5.4.280.0030.04319.06
5.4.270.0000.04419.20
5.4.260.0000.04218.94
5.4.250.0060.04118.94
5.4.240.0030.03619.20
5.4.230.0040.03619.08
5.4.220.0030.04419.13
5.4.210.0040.03919.08
5.4.200.0030.04019.06
5.4.190.0070.04318.91
5.4.180.0030.04018.94
5.4.170.0100.03019.06
5.4.160.0070.03719.19
5.4.150.0000.04519.16
5.4.140.0030.03516.50
5.4.130.0030.03516.53
5.4.120.0060.03216.75
5.4.110.0100.03016.77
5.4.100.0070.03616.48
5.4.90.0030.03716.73
5.4.80.0030.03416.69
5.4.70.0070.03616.61
5.4.60.0030.04016.68
5.4.50.0060.03116.47
5.4.40.0000.03916.44
5.4.30.0130.03216.38
5.4.20.0070.03016.38
5.4.10.0030.03516.71
5.4.00.0000.04915.90
5.3.290.0200.03314.96
5.3.280.0030.03614.77
5.3.270.0030.03614.88
5.3.260.0000.04214.78
5.3.250.0030.03614.76
5.3.240.0030.05714.88
5.3.230.0000.04014.85
5.3.220.0100.06714.84
5.3.210.0030.03914.86
5.3.200.0090.03114.76
5.3.190.0030.03514.91
5.3.180.0000.04614.76
5.3.170.0030.03614.91
5.3.160.0000.04014.83
5.3.150.0060.03214.76
5.3.140.0030.03414.76
5.3.130.0040.04314.76
5.3.120.0000.04914.81
5.3.110.0000.04114.76
5.3.100.0060.03214.76
5.3.90.0070.03014.76
5.3.80.0030.03914.76
5.3.70.0030.03314.76
5.3.60.0000.07314.76
5.3.50.0030.03614.76
5.3.40.0030.03514.76
5.3.30.0030.03414.76
5.3.20.0040.03214.76
5.3.10.0070.02914.76
5.3.00.0070.03014.76
5.2.170.0060.02614.76
5.2.160.0030.03414.76
5.2.150.0030.02814.76
5.2.140.0000.03414.76
5.2.130.0040.02814.76
5.2.120.0030.03114.76
5.2.110.0000.03014.76
5.2.100.0100.05114.76
5.2.90.0030.02714.76
5.2.80.0040.03214.76
5.2.70.0030.03514.76
5.2.60.0030.03214.76
5.2.50.0030.04014.76
5.2.40.0030.06414.76
5.2.30.0030.06514.76
5.2.20.0030.04714.76
5.2.10.0230.01714.76
5.2.00.0000.03114.76
5.1.60.0000.02614.76
5.1.50.0000.03014.76
5.1.40.0000.03814.76
5.1.30.0030.02514.76
5.1.20.0040.02814.76
5.1.10.0030.02314.76
5.1.00.0000.02914.76
5.0.50.0100.03614.76
5.0.40.0070.03814.76
5.0.30.0000.03314.76
5.0.20.0030.02114.76
5.0.10.0000.02214.76
5.0.00.0030.03514.76
4.4.90.0000.01614.76
4.4.80.0030.01314.76
4.4.70.0000.01914.76
4.4.60.0000.02514.76
4.4.50.0030.01314.76
4.4.40.0000.02614.76
4.4.30.0030.01314.76
4.4.20.0030.01914.76
4.4.10.0030.01714.76
4.4.00.0000.02514.76
4.3.110.0000.02714.76
4.3.100.0000.01614.76
4.3.90.0000.01614.76
4.3.80.0030.03114.76
4.3.70.0000.01614.76
4.3.60.0030.01414.76
4.3.50.0030.02314.76
4.3.40.0030.02614.76
4.3.30.0070.01414.76
4.3.20.0000.01714.76
4.3.10.0000.03614.76
4.3.00.0030.01414.76

preferences:
41.8 ms | 401 KiB | 5 Q