3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { const BAR = 2; } $test = new Foo; var_dump(BAR);

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.0120.00816.63
8.3.50.0120.00721.06
8.3.40.0040.01118.62
8.3.30.0070.00718.70
8.3.20.0080.00020.16
8.3.10.0060.00323.45
8.3.00.0090.00023.64
8.2.180.0110.01118.54
8.2.170.0070.00722.96
8.2.160.0070.00720.38
8.2.150.0080.00024.18
8.2.140.0050.00224.66
8.2.130.0040.00419.73
8.2.120.0030.00626.35
8.2.110.0060.00320.39
8.2.100.0080.00417.74
8.2.90.0000.00819.30
8.2.80.0080.00017.97
8.2.70.0060.00317.63
8.2.60.0080.00017.93
8.2.50.0040.00418.07
8.2.40.0030.00522.15
8.2.30.0070.00019.35
8.2.20.0000.00717.80
8.2.10.0000.00918.08
8.2.00.0040.00417.93
8.1.280.0120.00325.92
8.1.270.0110.00723.73
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0000.00822.19
8.1.230.0110.00017.45
8.1.220.0000.00917.80
8.1.210.0000.00818.77
8.1.200.0060.00317.36
8.1.190.0050.00317.35
8.1.180.0040.00418.10
8.1.170.0050.00318.49
8.1.160.0000.00720.78
8.1.150.0040.00418.91
8.1.140.0000.00819.49
8.1.130.0000.00817.66
8.1.120.0000.00717.46
8.1.110.0000.00717.39
8.1.100.0030.00317.46
8.1.90.0030.00417.44
8.1.80.0050.00317.34
8.1.70.0070.00017.39
8.1.60.0050.00317.53
8.1.50.0040.00417.41
8.1.40.0030.00617.47
8.1.30.0000.01217.71
8.1.20.0000.00817.62
8.1.10.0000.00817.62
8.1.00.0040.00417.44
8.0.300.0050.00218.77
8.0.290.0040.00416.75
8.0.280.0000.00718.55
8.0.270.0000.00717.17
8.0.260.0030.00317.24
8.0.250.0000.00717.06
8.0.240.0000.00616.91
8.0.230.0030.00317.05
8.0.220.0000.00716.96
8.0.210.0050.00216.86
8.0.200.0030.00316.85
8.0.190.0050.00217.05
8.0.180.0030.00716.99
8.0.170.0050.00316.89
8.0.160.0040.00416.96
8.0.150.0040.00416.95
8.0.140.0000.00816.89
8.0.130.0000.00613.44
8.0.120.0050.00316.92
8.0.110.0040.00417.00
8.0.100.0070.00017.01
8.0.90.0000.00716.98
8.0.80.0140.00316.93
8.0.70.0040.00416.80
8.0.60.0070.00017.01
8.0.50.0040.00416.89
8.0.30.0120.00717.12
8.0.20.0120.00817.40
8.0.10.0080.00016.95
8.0.00.0130.00616.79
7.4.330.0000.00516.74
7.4.320.0030.00316.63
7.4.300.0040.00416.51
7.4.290.0000.00716.64
7.4.280.0090.00016.59
7.4.270.0000.00716.61
7.4.260.0000.00816.35
7.4.250.0050.00316.45
7.4.240.0050.00316.50
7.4.230.0000.00716.53
7.4.220.0090.00916.70
7.4.210.0080.01216.60
7.4.200.0000.00716.60
7.4.160.0060.01416.49
7.4.150.0130.00717.40
7.4.140.0120.00717.86
7.4.130.0060.01516.34
7.4.120.0120.01016.58
7.4.110.0110.00716.58
7.4.100.0140.00416.46
7.4.90.0070.01016.43
7.4.80.0120.00619.39
7.4.70.0090.00716.62
7.4.60.0090.00716.56
7.4.50.0120.00316.36
7.4.40.0090.00616.57
7.4.30.0130.00316.35
7.4.00.0080.00014.75
7.3.330.0050.00013.04
7.3.320.0000.00613.02
7.3.310.0040.00416.29
7.3.300.0060.00016.18
7.3.290.0100.00616.18
7.3.280.0100.01016.19
7.3.270.0030.01417.40
7.3.260.0090.00916.45
7.3.240.0150.00516.40
7.3.230.0030.01316.52
7.3.210.0030.01516.23
7.3.200.0080.00819.39
7.3.190.0110.00716.38
7.3.180.0060.01116.36
7.3.170.0100.01116.27
7.3.160.0050.01116.31
7.2.330.0180.00716.56
7.2.320.0100.00716.47
7.2.310.0070.01516.61
7.2.300.0130.00616.40
7.2.290.0120.01016.72
7.2.60.0050.00816.73
7.2.00.0080.00819.28
7.1.200.0120.00615.73
7.1.100.0070.01017.92
7.1.70.0030.00517.09
7.1.60.0070.01719.30
7.1.50.0040.01516.58
7.1.00.0070.07322.46
7.0.200.0040.00416.20
7.0.60.0230.07321.88
7.0.50.0100.04717.85
7.0.40.0030.06320.40
7.0.30.0100.04720.34
7.0.20.0300.08320.30
7.0.10.0000.04720.24
7.0.00.0030.07320.24
5.6.280.0030.03320.76
5.6.210.0070.08020.63
5.6.200.0070.09018.19
5.6.190.0000.07320.62
5.6.180.0470.07320.67
5.6.170.0270.07720.50
5.6.160.0070.05320.45
5.6.150.0070.05318.18
5.6.140.0030.03718.18
5.6.130.0070.08318.18
5.6.120.0070.07720.98
5.6.110.0170.07321.12
5.6.100.0100.08021.04
5.6.90.0030.04320.96
5.6.80.0030.08320.34
5.5.350.0100.03320.41
5.5.340.0000.04017.95
5.5.330.0030.07320.47
5.5.320.0600.07020.42
5.5.310.0200.03320.34
5.5.300.0100.08318.01
5.5.290.0170.03717.94
5.5.280.0070.04020.80
5.5.270.0070.05020.86
5.5.260.0100.08020.96
5.5.250.0030.09020.46
5.5.240.0230.05320.34

preferences:
52.79 ms | 401 KiB | 5 Q