3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a {public $val=1;} class b {public $val=2;} const CLASSES = array("one"=>'a', "two"=>'b'); $a = CLASSES['one']; var_dump(new $a());

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.0100.00916.84
8.5.00.0130.00820.07
8.4.150.0020.00014.05
8.4.140.0090.01217.72
8.4.130.0090.01217.91
8.4.120.0060.00820.53
8.4.110.0120.00722.69
8.4.100.0130.00719.40
8.4.90.0120.01118.59
8.4.80.0100.00917.93
8.4.70.0110.01017.72
8.4.60.0060.00320.40
8.4.50.0130.00718.60
8.4.40.0100.00017.69
8.4.30.0090.00918.68
8.4.20.0080.01220.56
8.4.10.0130.00618.85
8.3.280.0110.00918.55
8.3.270.0120.01316.63
8.3.260.0040.00416.56
8.3.250.0120.00718.72
8.3.240.0140.00516.63
8.3.230.0070.00216.68
8.3.220.0120.00718.83
8.3.210.0110.00816.61
8.3.200.0070.00916.72
8.3.190.0100.00916.99
8.3.180.0110.00416.58
8.3.170.0110.00720.78
8.3.160.0100.00717.05
8.3.150.0090.00916.61
8.3.140.0030.00617.25
8.3.130.0030.00518.43
8.3.120.0000.01518.81
8.3.110.0060.00320.94
8.3.100.0040.00416.67
8.3.90.0030.00526.77
8.3.80.0040.00416.50
8.3.70.0100.01016.63
8.3.60.0060.00916.32
8.3.50.0100.01018.03
8.3.40.0040.01118.79
8.3.30.0090.00618.54
8.3.20.0040.00424.18
8.3.10.0000.00824.66
8.3.00.0040.00426.16
8.2.290.0110.00820.46
8.2.280.0050.00318.49
8.2.270.0090.00916.47
8.2.260.0040.00416.38
8.2.250.0080.00016.61
8.2.240.0110.00719.11
8.2.230.0080.00022.58
8.2.220.0040.00424.06
8.2.210.0060.01326.77
8.2.200.0060.00318.29
8.2.190.0140.00416.63
8.2.180.0150.00625.92
8.2.170.0080.00618.95
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00019.89
8.2.110.0040.00419.27
8.2.100.0060.00617.72
8.2.90.0040.00417.75
8.2.80.0080.00018.71
8.2.70.0040.00417.75
8.2.60.0080.00017.75
8.2.50.0090.00017.55
8.2.40.0080.00018.34
8.2.30.0000.00818.07
8.2.20.0040.00418.15
8.2.10.0030.00519.40
8.2.00.0000.00719.21
8.1.330.0070.01122.06
8.1.320.0110.00816.13
8.1.310.0120.00415.98
8.1.300.0140.00320.09
8.1.290.0050.00530.84
8.1.280.0140.00325.92
8.1.270.0040.00423.99
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0100.00021.84
8.1.230.0040.00820.91
8.1.220.0080.00018.73
8.1.210.0040.00418.77
8.1.200.0090.00017.23
8.1.190.0030.00617.10
8.1.180.0000.00818.10
8.1.170.0050.00318.66
8.1.160.0040.00419.05
8.1.150.0030.00518.55
8.1.140.0040.00418.93
8.1.130.0070.00020.29
8.1.120.0000.00817.48
8.1.110.0030.00417.46
8.1.100.0040.00417.32
8.1.90.0060.00317.45
8.1.80.0040.00417.46
8.1.70.0050.00317.42
8.1.60.0030.00517.61
8.1.50.0000.00817.40
8.1.40.0040.00417.42
8.1.30.0040.00417.63
8.1.20.0000.00817.54
8.1.10.0000.00817.58
8.1.00.0000.00717.54
8.0.300.0070.00020.04
8.0.290.0000.00716.75
8.0.280.0000.00718.48
8.0.270.0000.00818.00
8.0.260.0060.00018.47
8.0.250.0050.00216.79
8.0.240.0000.00716.91
8.0.230.0050.00316.98
8.0.220.0000.00716.92
8.0.210.0030.00316.92
8.0.200.0020.00517.00
8.0.190.0040.00416.93
8.0.180.0020.00516.89
8.0.170.0030.00616.91
8.0.160.0030.00616.85
8.0.150.0040.00416.81
8.0.140.0070.00016.89
8.0.130.0000.00613.32
8.0.120.0060.00316.74
8.0.110.0000.00916.86
8.0.100.0040.00416.91
8.0.90.0030.00516.92
8.0.80.0070.00016.78
8.0.70.0050.00316.87
8.0.60.0000.00816.84
8.0.50.0040.00416.82
8.0.30.0000.00716.89
8.0.20.0050.00316.97
8.0.10.0040.00416.93
8.0.00.0070.00016.84
7.4.330.0040.00015.55
7.4.320.0070.00016.60
7.4.300.0030.00316.50
7.4.290.0030.00516.43
7.4.280.0020.00516.49
7.4.270.0030.00316.58
7.4.260.0000.00513.23
7.4.250.0040.00416.38
7.4.240.0030.00516.52
7.4.230.0000.00716.38
7.4.220.0050.00216.61
7.4.210.0020.00516.39
7.4.200.0040.00416.41
7.4.190.0030.00616.47
7.4.180.0040.00416.72
7.4.160.0040.00416.54
7.4.150.0050.00316.63
7.4.140.0000.00816.48
7.4.130.0030.00616.34
7.4.120.0040.00416.55
7.4.110.0000.00716.55
7.4.100.0000.00816.25
7.4.90.0070.00016.63
7.4.80.0050.00316.54
7.4.70.0000.00716.60
7.4.60.0050.00216.64
7.4.50.0040.00416.22
7.4.40.0000.00716.28
7.4.30.0050.00216.55
7.4.20.0000.00716.20
7.4.10.0030.00516.44
7.4.00.0000.00716.54
7.3.330.0030.00416.15
7.3.320.0000.00513.18
7.3.310.0030.00316.19
7.3.300.0030.00316.29
7.3.290.0050.00216.15
7.3.280.0000.00716.34
7.3.270.0060.00016.25
7.3.260.0000.00816.26
7.3.250.0000.00716.30
7.3.240.0000.00716.21
7.3.230.0000.00716.17
7.3.220.0040.00416.27
7.3.210.0030.00316.10
7.3.200.0060.00316.18
7.3.190.0040.00416.18
7.3.180.0060.00316.09
7.3.170.0000.00716.28
7.3.160.0030.00316.19
7.3.150.0040.00416.24
7.3.140.0040.00416.25
7.3.130.0070.00016.21
7.3.120.0000.00716.24
7.3.110.0000.00716.22
7.3.100.0060.00016.17
7.3.90.0000.00716.38
7.3.80.0030.00416.24
7.3.70.0000.00716.29
7.3.60.0040.00416.42
7.3.50.0050.00316.52
7.3.40.0030.00316.47
7.3.30.0070.00016.39
7.3.20.0020.00516.41
7.3.10.0040.00416.40
7.3.00.0000.00816.40

preferences:
42.78 ms | 403 KiB | 5 Q