3v4l.org

run code in 300+ PHP versions simultaneously
<?php class X { static $gen = 0; function test(){ var_dump((__CLASS__)::$gen++); } } $x = new X; $x->test();

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.0110.00316.50
8.3.50.0130.00622.11
8.3.40.0040.01118.62
8.3.30.0040.01118.77
8.3.20.0060.00320.09
8.3.10.0080.00020.36
8.3.00.0040.00423.72
8.2.180.0070.00716.50
8.2.170.0150.00022.96
8.2.160.0030.01419.29
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0000.00722.13
8.2.120.0000.00726.35
8.2.110.0060.00319.37
8.2.100.0090.00317.78
8.2.90.0080.00021.07
8.2.80.0030.00617.97
8.2.70.0050.00317.93
8.2.60.0040.00418.03
8.2.50.0000.00818.10
8.2.40.0000.00820.59
8.2.30.0040.00419.20
8.2.20.0040.00418.14
8.2.10.0040.00417.98
8.2.00.0050.00217.77
8.1.280.0070.00725.92
8.1.270.0070.00024.02
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0060.00322.07
8.1.230.0070.00320.86
8.1.220.0070.00017.74
8.1.210.0000.00919.02
8.1.200.0060.00317.34
8.1.190.0000.00817.23
8.1.180.0060.00318.10
8.1.170.0050.00318.45
8.1.160.0000.00722.13
8.1.150.0000.00718.81
8.1.140.0040.00419.46
8.1.130.0030.00517.59
8.1.120.0000.00717.38
8.1.110.0000.00717.43
8.1.100.0000.00717.36
8.1.90.0040.00417.44
8.1.80.0000.00717.35
8.1.70.0070.00017.29
8.1.60.0040.00417.58
8.1.50.0080.00017.45
8.1.40.0030.00917.43
8.1.30.0050.00317.55
8.1.20.0050.00217.50
8.1.10.0000.00817.62
8.1.00.0000.00717.35
8.0.300.0000.00719.56
8.0.290.0040.00416.63
8.0.280.0000.00718.43
8.0.270.0050.00217.18
8.0.260.0060.00017.38
8.0.250.0030.00316.80
8.0.240.0000.00716.87
8.0.230.0030.00316.90
8.0.220.0030.00516.70
8.0.210.0000.00716.80
8.0.200.0030.00316.80
8.0.190.0050.00316.89
8.0.180.0040.00416.90
8.0.170.0030.00616.83
8.0.160.0030.00316.80
8.0.150.0040.00416.79
8.0.140.0070.00016.78
8.0.130.0050.00013.20
8.0.120.0050.00316.70
8.0.110.0040.00416.70
8.0.100.0040.00416.68
8.0.90.0070.00016.72
8.0.80.0120.00616.81
8.0.70.0000.00916.86
8.0.60.0030.00316.81
8.0.50.0040.00416.60
8.0.30.0080.01117.22
8.0.20.0130.00517.40
8.0.10.0000.00716.91
8.0.00.0160.00616.60
7.4.330.0030.00315.08
7.4.320.0060.00016.39
7.4.300.0030.00316.59
7.4.290.0070.00016.63
7.4.280.0090.00316.54
7.4.270.0000.00816.48
7.4.260.0070.00016.52
7.4.250.0000.00716.55
7.4.240.0040.00416.59
7.4.230.0030.00316.70
7.4.220.0040.01416.61
7.4.210.0100.00716.54
7.4.200.0000.00716.52
7.4.160.0070.00816.37
7.4.150.0100.00717.40
7.4.140.0050.01317.86
7.4.130.0090.00816.53
7.4.120.0130.00616.42
7.4.110.0040.01816.25
7.4.100.0200.00616.60
7.4.90.0100.00616.23
7.4.80.0070.01019.39
7.4.70.0080.00816.32
7.4.60.0060.01016.37
7.4.50.0000.01116.61
7.4.40.0190.00016.47
7.4.30.0110.01116.32
7.4.00.0070.00715.14
7.3.330.0000.00613.13
7.3.320.0000.00513.05
7.3.310.0000.00716.31
7.3.300.0000.00616.35
7.3.290.0040.01216.28
7.3.280.0090.00716.31
7.3.270.0160.01017.40
7.3.260.0100.00716.39
7.3.250.0030.01316.43
7.3.240.0060.01016.23
7.3.230.0080.00816.39
7.3.210.0080.00816.38
7.3.200.0120.00316.45
7.3.190.0130.00316.22
7.3.180.0180.00316.48
7.3.170.0130.00316.46
7.3.160.0120.00916.43
7.2.330.0120.00616.32
7.2.320.0100.01316.71
7.2.310.0030.01316.29
7.2.300.0030.02116.69
7.2.290.0100.00716.75
7.2.60.0070.01016.73
7.2.00.0310.01419.22
7.1.200.0040.00815.60
7.1.70.0060.00616.96
7.1.60.0000.01217.10
7.1.50.0090.01216.97
7.1.00.0000.08022.35
7.0.200.0040.00416.54
7.0.110.0130.05320.14
7.0.100.0100.06320.14
7.0.90.0000.09020.26
7.0.80.0130.06020.30
7.0.70.0100.05320.38
7.0.60.0100.05720.25
7.0.50.0200.06720.29
7.0.40.0170.04720.27
7.0.30.0300.05720.27
7.0.20.0300.05320.29
7.0.10.0200.06020.32
7.0.00.0270.05320.23
5.6.260.0100.05321.11
5.6.250.0200.04321.09
5.6.240.0170.05021.04
5.6.230.0070.06320.80
5.6.220.0100.05320.74
5.6.210.0100.05320.89
5.6.200.0000.07021.05
5.6.190.0170.05321.09
5.6.180.0000.06321.02
5.6.170.0100.05320.93
5.6.160.0030.06321.00
5.6.150.0130.05320.85
5.6.140.0070.06020.84
5.6.130.0030.06020.85
5.6.120.0070.06020.75
5.6.110.0070.06720.84
5.6.100.0130.05020.91
5.6.90.0170.05320.93
5.6.80.0100.05020.22
5.6.70.0170.04320.39
5.6.60.0070.05320.21
5.6.50.0100.05020.12
5.6.40.0000.06720.37
5.6.30.0130.06020.36
5.6.20.0070.05720.30
5.6.10.0100.05720.35
5.6.00.0100.05020.35

preferences:
38.96 ms | 401 KiB | 5 Q