3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __construct() { return 1; } } $foo = new Foo(); var_dump(get_class($foo));

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.40.0070.00718.77
8.3.30.0070.00718.54
8.3.20.0000.00820.50
8.3.10.0080.00021.85
8.3.00.0090.00019.22
8.2.170.0070.00722.96
8.2.160.0080.00620.39
8.2.150.0080.00025.66
8.2.140.0080.00024.66
8.2.130.0050.00222.08
8.2.120.0080.00026.35
8.2.110.0060.00320.47
8.2.100.0030.00917.78
8.2.90.0050.00318.98
8.2.80.0000.00817.97
8.2.70.0050.00317.50
8.2.60.0040.00417.79
8.2.50.0050.00318.10
8.2.40.0040.00420.43
8.2.30.0000.00720.97
8.2.20.0070.00018.00
8.2.10.0000.00817.87
8.2.00.0070.00017.89
8.1.270.0050.00323.79
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0040.00820.82
8.1.230.0050.00519.08
8.1.220.0060.00317.74
8.1.210.0080.00018.77
8.1.200.0100.00017.10
8.1.190.0000.00917.22
8.1.180.0050.00318.10
8.1.170.0000.00818.66
8.1.160.0030.00319.00
8.1.150.0070.00020.60
8.1.140.0000.00819.48
8.1.130.0000.00718.80
8.1.120.0030.00317.38
8.1.110.0040.00417.21
8.1.100.0000.00817.38
8.1.90.0050.00317.38
8.1.80.0000.00717.41
8.1.70.0000.00717.27
8.1.60.0000.00817.62
8.1.50.0000.00817.42
8.1.40.0000.01017.57
8.1.30.0040.00417.60
8.1.20.0040.00417.53
8.1.10.0060.00317.47
8.1.00.0080.00017.50
8.0.300.0050.00218.77
8.0.290.0040.00416.58
8.0.280.0030.00518.42
8.0.270.0060.00317.12
8.0.260.0000.00616.63
8.0.250.0030.00316.85
8.0.240.0040.00416.86
8.0.230.0000.00616.89
8.0.220.0030.00316.82
8.0.210.0030.00616.81
8.0.200.0070.00316.89
8.0.190.0050.00216.76
8.0.180.0030.00316.85
8.0.170.0040.00416.84
8.0.160.0050.00216.82
8.0.150.0080.00016.87
8.0.140.0000.00716.82
8.0.130.0000.00513.21
8.0.120.0000.00816.66
8.0.110.0040.00416.88
8.0.100.0000.00816.81
8.0.90.0040.00416.89
8.0.80.0120.00316.87
8.0.70.0050.00216.75
8.0.60.0030.00516.67
8.0.50.0040.00416.69
8.0.30.0160.00116.91
8.0.20.0110.01017.40
8.0.10.0000.00716.93
8.0.00.0080.01216.68
7.4.330.0050.00015.55
7.4.320.0000.00616.41
7.4.300.0000.00716.61
7.4.290.0030.00316.61
7.4.280.0040.00416.57
7.4.270.0000.01016.60
7.4.260.0030.00313.27
7.4.250.0070.00016.45
7.4.240.0030.00516.39
7.4.230.0070.00016.30
7.4.220.0150.00916.45
7.4.210.0070.00716.52
7.4.200.0070.00016.49
7.4.160.0090.00616.51
7.4.150.0090.00917.40
7.4.140.0090.01117.86
7.4.130.0220.00316.43
7.4.120.0130.00616.55
7.4.110.0030.01516.29
7.4.100.0110.00516.36
7.4.90.0100.00716.55
7.4.80.0070.01019.39
7.4.70.0060.01016.46
7.4.60.0040.01316.41
7.4.50.0060.00916.48
7.4.40.0060.00916.41
7.4.30.0080.00916.48
7.4.00.0080.00414.80
7.3.330.0050.00013.09
7.3.320.0050.00013.31
7.3.310.0060.00316.22
7.3.300.0030.00516.17
7.3.290.0080.00616.30
7.3.280.0090.00716.29
7.3.270.0100.00717.40
7.3.260.0100.00916.47
7.3.250.0140.00816.38
7.3.240.0120.00916.23
7.3.230.0150.00316.46
7.3.210.0060.01016.60
7.3.200.0100.00716.30
7.3.190.0080.01416.48
7.3.180.0110.01116.22
7.3.170.0100.00616.68
7.3.160.0130.00616.37
7.2.330.0070.01716.60
7.2.320.0160.00016.35
7.2.310.0070.01016.66
7.2.300.0000.01616.64
7.2.290.0060.01016.54
7.2.60.0030.01316.48
7.2.00.0060.00619.10
7.1.200.0090.00615.61
7.1.100.0030.01017.94
7.1.70.0040.00417.22
7.1.60.2470.01732.87
7.1.50.2730.01332.79
7.1.40.2630.01732.48
7.1.30.4070.01032.78
7.1.20.3300.01032.59
7.1.10.2070.00314.68
7.1.00.2030.01015.00
7.0.200.4070.01014.73
7.0.190.3870.00714.54
7.0.180.2030.01714.29
7.0.170.3930.00314.33
7.0.160.3430.01014.33
7.0.150.2430.01314.20
7.0.140.1800.01014.48
7.0.130.2330.00714.61
7.0.120.1470.01314.68
7.0.110.1370.00714.29
7.0.100.1730.01314.46
7.0.90.1470.01314.38
7.0.80.1330.00314.75
7.0.70.1470.00714.55
7.0.60.1900.00314.39
7.0.50.1900.01714.62
7.0.40.1430.01314.37
7.0.30.1100.01314.68
7.0.20.1430.01314.67
7.0.10.1670.00714.48
7.0.00.1570.01314.41

preferences:
44.25 ms | 400 KiB | 5 Q