3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A {} class B extends A {} class Handler { public function handle(A $a) {} } class HandlerB extends Handler { public function handle($a) {} } $handlerA = new Handler(); $handlerB = new HandlerB(); $handlerA->handle(new A()); $handlerB->handle(new B());

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.00916.38
8.3.50.0110.00417.94
8.3.40.0040.01118.71
8.3.30.0070.00718.73
8.3.20.0040.00419.39
8.3.10.0070.00023.52
8.3.00.0080.00020.64
8.2.180.0070.00718.13
8.2.170.0130.00722.96
8.2.160.0100.00320.38
8.2.150.0070.00024.18
8.2.140.0000.00724.66
8.2.130.0080.00017.97
8.2.120.0040.00426.35
8.2.110.0060.00319.21
8.2.100.0040.00818.16
8.2.90.0040.00717.63
8.2.80.0030.00617.97
8.2.70.0080.00017.80
8.2.60.0070.00018.16
8.2.50.0000.00818.10
8.2.40.0000.00819.38
8.2.30.0050.00219.09
8.2.20.0000.00718.01
8.2.10.0040.00417.87
8.2.00.0060.00317.57
8.1.280.0110.00425.92
8.1.270.0050.00320.36
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00822.20
8.1.230.0040.00718.88
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0090.00017.36
8.1.190.0050.00317.10
8.1.180.0000.00818.10
8.1.170.0000.00918.59
8.1.160.0040.00418.89
8.1.150.0040.00418.75
8.1.140.0040.00422.14
8.1.130.0080.00020.27
8.1.120.0040.00417.46
8.1.110.0030.00617.37
8.1.100.0040.00417.29
8.1.90.0050.00317.37
8.1.80.0000.00717.35
8.1.70.0030.00617.34
8.1.60.0000.00917.63
8.1.50.0000.00817.48
8.1.40.0060.00317.55
8.1.30.0080.00017.64
8.1.20.0040.00417.66
8.1.10.0000.00717.51
8.1.00.0040.00417.46
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0030.00318.30
8.0.270.0000.00717.19
8.0.260.0060.00018.38
8.0.250.0030.00316.93
8.0.240.0060.00016.99
8.0.230.0000.00717.00
8.0.220.0000.00716.88
8.0.210.0030.00316.94
8.0.200.0080.00017.03
8.0.190.0040.00416.87
8.0.180.0030.00616.79
8.0.170.0040.00416.89
8.0.160.0000.00916.90
8.0.150.0030.00616.87
8.0.140.0050.00316.85
8.0.130.0090.00013.28
8.0.120.0040.00416.89
8.0.110.0080.00016.82
8.0.100.0000.00716.87
8.0.90.0000.00816.95
8.0.80.0090.01216.86
8.0.70.0030.00416.79
8.0.60.0000.00816.71
8.0.50.0070.00016.76
8.0.30.0100.00816.98
8.0.20.0190.00317.40
8.0.10.0040.00416.82
8.0.00.0120.00916.77
7.4.330.0070.00015.55
7.4.320.0070.00016.43
7.4.300.0000.00716.50
7.4.290.0060.00016.64
7.4.280.0030.00616.50
7.4.270.0030.00316.54
7.4.260.0000.00716.44
7.4.250.0050.00316.46
7.4.240.0030.00316.53
7.4.230.0040.00416.45
7.4.220.0040.00416.40
7.4.210.0050.01216.43
7.4.200.0000.00816.63
7.4.160.0090.00916.46
7.4.140.0090.00917.86
7.4.130.0100.00716.32
7.4.120.0110.00616.39
7.4.110.0120.00616.41
7.4.100.0100.00716.45
7.4.90.0070.01016.41
7.4.80.0100.01019.39
7.4.70.0090.00916.43
7.4.60.0100.00616.45
7.4.50.0110.00716.57
7.4.40.0140.00416.21
7.4.00.0060.00615.06
7.3.330.0000.00513.25
7.3.320.0060.00013.18
7.3.310.0080.00016.14
7.3.300.0000.00616.29
7.3.290.0060.00016.23
7.3.280.0130.00716.18
7.3.260.0110.00816.36
7.3.240.0100.01016.27
7.3.230.0100.00616.23
7.3.210.0000.01716.44
7.3.200.0060.01016.23
7.3.190.0060.01616.05
7.3.180.0120.00416.28
7.3.170.0130.00416.24
7.3.160.0100.00616.16
7.3.10.0040.01116.48
7.3.00.0080.00316.68
7.2.330.0070.01016.79
7.2.320.0070.01016.40
7.2.310.0130.01016.21
7.2.300.0100.00716.84
7.2.290.0120.00616.45
7.2.130.0080.00416.80
7.2.120.0090.00616.87
7.2.110.0110.00515.59
7.2.100.0100.01015.68
7.2.90.0090.00715.72
7.2.80.0200.00515.59
7.2.70.0180.00815.83
7.2.60.0160.00915.67
7.2.50.0160.01215.80
7.2.40.0220.00716.04
7.2.30.0180.01115.88
7.2.20.0230.00815.84
7.2.10.0200.00615.99
7.2.00.0190.00515.94
7.1.250.0080.00415.45
7.1.230.0300.01013.58
7.1.220.0120.00313.80
7.1.210.0320.01013.84
7.1.200.0320.00013.86
7.1.190.0980.00313.76
7.1.180.0310.00613.62
7.1.170.0300.00713.75
7.1.160.0340.00613.79
7.1.150.0320.00313.78
7.1.140.0410.00313.86
7.1.130.0320.00613.84
7.1.120.0300.00713.81
7.1.110.0350.00313.72
7.1.100.0370.00013.97
7.1.90.0410.00313.82
7.1.80.0480.00013.92
7.1.70.0400.00313.64
7.1.60.0550.00731.80
7.1.50.0470.01331.96
7.1.40.0550.00332.10
7.1.30.0500.01331.80
7.1.20.0760.01331.98
7.1.10.0480.01213.82
7.1.00.0380.00013.92
5.6.380.0130.00014.36

preferences:
88.49 ms | 401 KiB | 5 Q