3v4l.org

run code in 300+ PHP versions simultaneously
<?php $o=new C1(); $o->f();/*this is OK, because C1 does not implement anything, it can be declared anywhere.*/ $o=new C2();/*this is NOT ok, because C2 implements something, it must be declared before being used.*/ class C1 /*implements nothing*/ { function f() { echo "Hellooo"; } } class C2 implements Countable{ function count(){} }

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.0050.00421.41
8.5.00.0120.00920.05
8.4.160.0150.00923.82
8.4.150.0020.00114.05
8.4.140.0090.01317.98
8.4.130.0120.00917.89
8.4.120.0130.00620.26
8.4.110.0080.01219.01
8.4.100.0130.00718.07
8.4.90.0120.00717.74
8.4.80.0080.00217.84
8.4.70.0080.00817.80
8.4.60.0020.00618.62
8.4.50.0100.01018.82
8.4.40.0100.00919.36
8.4.30.0150.00617.79
8.4.20.0030.01717.95
8.4.10.0060.00317.67
8.3.290.0140.00720.83
8.3.280.0100.01018.44
8.3.270.0110.00916.70
8.3.260.0090.01016.40
8.3.250.0100.00818.68
8.3.240.0090.00916.68
8.3.230.0100.01116.71
8.3.220.0120.00617.17
8.3.210.0120.00716.65
8.3.200.0040.00416.81
8.3.190.0130.00517.13
8.3.180.0080.00818.93
8.3.170.0150.00018.88
8.3.160.0110.00718.44
8.3.150.0060.01218.93
8.3.140.0040.00417.32
8.3.130.0040.00418.38
8.3.120.0090.00018.95
8.3.110.0100.00018.47
8.3.100.0110.00016.63
8.3.90.0000.00816.63
8.3.80.0030.00718.56
8.3.70.0180.00018.20
8.3.60.0120.00316.63
8.3.50.0110.01121.02
8.3.40.0070.01018.80
8.3.30.0070.01018.75
8.3.20.0000.00719.20
8.3.10.0080.00023.71
8.3.00.0030.00719.55
8.2.300.0120.00721.94
8.2.290.0050.00522.15
8.2.280.0120.00518.45
8.2.270.0200.00016.73
8.2.260.0060.01217.32
8.2.250.0160.00018.47
8.2.240.0000.00816.82
8.2.230.0050.00320.94
8.2.220.0050.00524.06
8.2.210.0000.00826.77
8.2.200.0040.00416.50
8.2.190.0100.01016.75
8.2.180.0040.01116.71
8.2.170.0040.01122.96
8.2.160.0110.00419.21
8.2.150.0050.00324.18
8.2.140.0030.00624.66
8.2.130.0040.00420.38
8.2.120.0040.00426.35
8.2.110.0060.00322.15
8.2.100.0110.00017.91
8.2.90.0050.00319.23
8.2.80.0030.00617.97
8.2.70.0080.00017.63
8.2.60.0030.00518.04
8.2.50.0090.00018.10
8.2.40.0000.00720.55
8.2.30.0000.00819.29
8.2.20.0000.00717.93
8.2.10.0040.00417.87
8.2.00.0000.00718.17
8.1.340.0120.00817.70
8.1.330.0100.00816.62
8.1.320.0110.00917.89
8.1.310.0050.00316.76
8.1.300.0040.01116.02
8.1.290.0040.00718.88
8.1.280.0120.00625.92
8.1.270.0080.00023.96
8.1.260.0080.00026.35
8.1.250.0050.00228.09
8.1.240.0060.00323.96
8.1.230.0060.00623.98
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0060.00317.38
8.1.190.0040.00417.10
8.1.180.0000.00818.10
8.1.170.0030.00618.47
8.1.160.0070.00018.82
8.1.150.0040.00419.92
8.1.140.0000.00819.46
8.1.130.0030.00318.86
8.1.120.0000.00717.40
8.1.110.0030.00617.31
8.1.100.0070.00017.31
8.1.90.0000.00717.39
8.1.80.0000.00717.29
8.1.70.0030.00317.42
8.1.60.0030.00617.47
8.1.50.0000.00817.41
8.1.40.0000.00917.52
8.1.30.0080.00017.66
8.1.20.0050.00317.47
8.1.10.0050.00217.55
8.1.00.0040.00417.52
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0000.00818.36
8.0.270.0030.00317.32
8.0.260.0070.00019.00
8.0.250.0070.00016.99
8.0.240.0000.00716.79
8.0.230.0030.00316.88
8.0.220.0030.00316.77
8.0.210.0040.00416.85
8.0.200.0000.00716.96
8.0.190.0030.00516.99
8.0.180.0050.00316.91
8.0.170.0040.00416.95
8.0.160.0040.00416.75
8.0.150.0040.00416.81
8.0.140.0030.00516.75
8.0.130.0060.00013.34
8.0.120.0040.00416.75
8.0.110.0070.00016.84
8.0.100.0040.00416.82
8.0.90.0070.00016.88
8.0.80.0000.01516.82
8.0.70.0040.00416.74
8.0.60.0050.00316.95
8.0.50.0000.00716.78
8.0.30.0120.00716.97
8.0.20.0120.00717.41
8.0.10.0040.00417.04
8.0.00.0150.00516.86
7.4.330.0000.00515.55
7.4.320.0000.00716.43
7.4.300.0030.00316.49
7.4.290.0030.00316.49
7.4.280.0050.00316.60
7.4.270.0000.00716.42
7.4.260.0000.00816.44
7.4.250.0030.00316.57
7.4.240.0030.00316.43
7.4.230.0030.00316.70
7.4.220.0170.00016.54
7.4.210.0120.00416.45
7.4.200.0000.00716.30
7.4.160.0130.00616.38
7.4.150.0060.01017.40
7.4.140.0130.01317.86
7.4.130.0040.01416.61
7.4.120.0130.00816.59
7.4.110.0070.01116.49
7.4.100.0100.00716.48
7.4.90.0060.01216.45
7.4.80.0090.01319.39
7.4.70.0050.01616.36
7.4.60.0130.00316.48
7.4.50.0090.00016.29
7.4.40.0060.01016.48
7.4.30.0040.01116.43
7.4.00.0030.01315.09
7.3.330.0030.00313.35
7.3.320.0000.00513.29
7.3.310.0030.00416.21
7.3.300.0070.00016.32
7.3.290.0090.00816.38
7.3.280.0080.00916.34
7.3.270.0090.00917.40
7.3.260.0070.01116.41
7.3.240.0070.01116.47
7.3.230.0130.00416.35
7.3.210.0100.00616.34
7.3.200.0110.00616.43
7.3.190.0060.01016.50
7.3.180.0070.00716.39
7.3.170.0100.00716.31
7.3.160.0080.00816.62
7.2.330.0120.01216.35
7.2.320.0060.01116.29
7.2.310.0110.00516.62
7.2.300.0060.01016.59
7.2.290.0060.00916.54
7.2.60.0100.00716.95
7.2.00.0050.00819.22
7.1.200.0050.00315.62
7.1.70.0040.00416.69
7.1.60.0030.00717.11
7.1.50.1770.01332.72
7.1.40.1700.01732.29
7.1.30.2400.02032.32
7.1.20.2200.01032.55
7.1.10.1530.00714.38
7.1.00.1600.01014.73
7.0.200.0110.01116.63
7.0.190.2100.01014.49
7.0.180.1530.00014.23
7.0.170.3930.01014.19
7.0.160.2530.01014.23
7.0.150.1930.01014.26
7.0.140.1670.01314.25
7.0.130.1500.01014.51
7.0.120.1700.00714.59
7.0.110.1900.01714.43
7.0.100.2030.01014.37
7.0.90.1570.01014.23
7.0.80.2700.01314.36
7.0.70.2270.01014.29
7.0.60.1730.01014.00
7.0.50.1800.01714.29
7.0.40.1700.01314.36
7.0.30.0330.01714.45
7.0.20.2400.01014.55
7.0.10.2600.01714.38
7.0.00.1800.01014.30

preferences:
33.26 ms | 403 KiB | 5 Q