3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Base{ public function t1(){ echo "t1 in Base\n"; } public function t2(){ echo "t2 in Base\n"; } } class Child extends Base{ //lets override t1 and leave t2 intact public function t1(){ echo "t1 in Child\n"; } } function test(Base $b){ $b->t1(); $b->t2(); } $child = new Child(); test ($child);

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.0090.00918.30
8.3.50.0100.00716.69
8.3.40.0110.00418.67
8.3.30.0060.00918.84
8.3.20.0070.00020.32
8.3.10.0070.00320.81
8.3.00.0030.00619.69
8.2.180.0120.00318.29
8.2.170.0140.00322.96
8.2.160.0100.00719.20
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0070.00019.83
8.2.120.0000.00726.35
8.2.110.0070.00321.18
8.2.100.0070.00417.91
8.2.90.0030.00617.84
8.2.80.0060.00318.05
8.2.70.0000.00817.93
8.2.60.0040.00418.05
8.2.50.0080.00018.10
8.2.40.0030.00522.33
8.2.30.0040.00419.19
8.2.20.0040.00418.00
8.2.10.0040.00417.86
8.2.00.0000.00717.89
8.1.280.0000.01425.92
8.1.270.0080.00021.93
8.1.260.0000.00726.35
8.1.250.0000.00728.09
8.1.240.0120.00622.47
8.1.230.0070.00422.62
8.1.220.0080.00017.74
8.1.210.0030.00918.77
8.1.200.0030.00617.35
8.1.190.0050.00317.10
8.1.180.0040.00418.10
8.1.170.0000.00818.82
8.1.160.0040.00419.01
8.1.150.0000.00818.82
8.1.140.0080.00019.50
8.1.130.0050.00218.86
8.1.120.0040.00317.40
8.1.110.0000.00817.42
8.1.100.0000.00817.46
8.1.90.0050.00217.29
8.1.80.0000.00717.43
8.1.70.0000.00717.23
8.1.60.0030.00617.46
8.1.50.0080.00017.54
8.1.40.0030.00617.35
8.1.30.0040.00417.63
8.1.20.0040.00417.66
8.1.10.0060.00317.43
8.1.00.0030.00617.50
8.0.300.0080.00019.60
8.0.290.0030.00616.75
8.0.280.0030.00318.34
8.0.270.0030.00317.16
8.0.260.0000.00620.59
8.0.250.0000.00716.85
8.0.240.0000.00716.94
8.0.230.0000.00717.01
8.0.220.0030.00316.78
8.0.210.0070.00016.88
8.0.200.0040.00416.91
8.0.190.0040.00416.92
8.0.180.0070.00016.99
8.0.170.0000.00716.81
8.0.160.0000.00816.91
8.0.150.0040.00416.89
8.0.140.0040.00416.80
8.0.130.0000.00513.22
8.0.120.0030.00516.86
8.0.110.0070.00016.86
8.0.100.0040.00416.89
8.0.90.0000.00716.79
8.0.80.0110.01116.86
8.0.70.0000.00716.71
8.0.60.0000.00716.92
8.0.50.0050.00216.97
8.0.30.0120.00717.06
8.0.20.0080.01117.40
8.0.10.0000.00717.00
8.0.00.0110.00716.87
7.4.330.0050.00015.55
7.4.320.0000.00616.50
7.4.300.0050.00216.60
7.4.290.0000.00716.35
7.4.280.0000.00716.62
7.4.270.0000.00716.52
7.4.260.0000.00716.48
7.4.250.0040.00416.36
7.4.240.0000.00716.58
7.4.230.0030.00316.41
7.4.220.0190.00016.50
7.4.210.0070.00716.55
7.4.200.0050.00216.25
7.4.160.0080.01016.46
7.4.150.0030.01417.40
7.4.140.0130.00917.86
7.4.130.0160.00316.59
7.4.120.0100.01016.45
7.4.110.0060.01016.60
7.4.100.0070.01116.63
7.4.90.0060.01216.48
7.4.80.0080.00819.39
7.4.70.0140.00316.52
7.4.60.0090.00616.42
7.4.50.0040.01116.62
7.4.40.0110.00716.50
7.4.30.0090.01316.37
7.4.00.0080.00414.84
7.3.330.0030.00313.25
7.3.320.0000.00613.30
7.3.310.0040.00216.19
7.3.300.0000.00716.34
7.3.290.0030.01016.31
7.3.280.0090.00916.29
7.3.270.0100.00617.40
7.3.260.0120.00516.47
7.3.250.0110.00616.28
7.3.240.0080.01016.26
7.3.230.0130.00316.32
7.3.210.0030.01316.28
7.3.200.0090.00616.32
7.3.190.0090.00916.35
7.3.180.0100.00716.60
7.3.170.0150.00316.15
7.3.160.0110.00516.38
7.3.10.0160.00316.30
7.3.00.0140.00716.27
7.2.330.0120.00616.71
7.2.320.0100.00716.57
7.2.310.0070.01016.53
7.2.300.0150.00416.37
7.2.290.0060.01316.80
7.2.130.0120.00616.39
7.2.120.0090.01216.07
7.2.110.0150.00616.77
7.2.100.0150.00416.82
7.2.90.0190.00415.90
7.2.80.0210.00316.44
7.2.70.0170.00716.02
7.2.60.0070.00716.67
7.2.50.0080.01216.74
7.2.40.0170.00316.60
7.2.30.0150.01516.81
7.2.20.0150.00416.56
7.2.10.0150.00316.67
7.2.00.0090.00716.64
7.1.250.0070.01515.21
7.1.200.0040.01115.45
7.1.70.5150.01615.38
7.1.60.4630.02633.25
7.1.50.2870.01032.71
7.1.40.2700.01032.73
7.1.30.4490.01232.63
7.1.20.3290.02032.64
7.1.10.2720.01014.83
7.1.00.0290.01114.80
7.0.200.4530.01014.93
7.0.190.3580.01314.61
7.0.180.3540.01614.57
7.0.170.3310.01814.60
7.0.160.3600.01314.39
7.0.150.2780.01014.57
7.0.140.2710.00814.67
7.0.130.0680.01114.59
7.0.120.0100.01014.85
7.0.110.0210.01714.57
7.0.100.0200.00914.26
7.0.90.4610.00214.60
7.0.80.0140.01314.66
7.0.70.0160.01014.55
7.0.60.0280.01714.40
7.0.50.0160.01014.68
7.0.40.0140.01414.59
7.0.30.0190.00614.76
7.0.20.0120.00914.59
7.0.10.0060.01814.52
7.0.00.0120.01214.64

preferences:
87.89 ms | 400 KiB | 5 Q