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(B $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.0150.00318.43
8.3.50.0110.00717.95
8.3.40.0100.00318.44
8.3.30.0070.00718.49
8.3.20.0060.00319.12
8.3.10.0080.00023.65
8.3.00.0040.00420.58
8.2.180.0110.01118.29
8.2.170.0150.00022.96
8.2.160.0030.01020.57
8.2.150.0070.00024.18
8.2.140.0000.00724.66
8.2.130.0040.00417.78
8.2.120.0070.00026.35
8.2.110.0060.00319.18
8.2.100.0090.00317.97
8.2.90.0030.00617.63
8.2.80.0110.00017.97
8.2.70.0030.00617.91
8.2.60.0060.00317.91
8.2.50.0040.00418.10
8.2.40.0040.00419.21
8.2.30.0000.00719.03
8.2.20.0000.00717.80
8.2.10.0000.00717.80
8.2.00.0040.00417.39
8.1.270.0080.00020.48
8.1.260.0000.00926.35
8.1.250.0080.00028.09
8.1.240.0060.00322.20
8.1.230.0030.00918.96
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0040.00417.10
8.1.190.0030.00517.10
8.1.180.0080.00018.10
8.1.170.0080.00018.46
8.1.160.0040.00418.63
8.1.150.0040.00418.75
8.1.140.0030.00522.09
8.1.130.0030.00520.26
8.1.120.0040.00417.34
8.1.110.0040.00417.37
8.1.100.0000.00717.33
8.1.90.0040.00417.31
8.1.80.0040.00417.25
8.1.70.0030.00717.26
8.1.60.0020.01017.46
8.1.50.0000.00817.36
8.1.40.0030.00617.27
8.1.30.0000.00817.55
8.1.20.0070.00017.55
8.1.10.0040.00417.28
8.1.00.0080.00017.33
8.0.300.0070.00018.77
8.0.290.0000.00716.58
8.0.280.0040.00418.22
8.0.270.0000.00717.03
8.0.260.0030.00318.31
8.0.250.0070.00016.77
8.0.240.0030.00316.90
8.0.230.0000.00716.77
8.0.220.0000.00716.72
8.0.210.0000.00716.82
8.0.200.0040.00416.84
8.0.190.0000.00716.77
8.0.180.0100.00016.85
8.0.170.0040.00416.74
8.0.160.0040.00416.87
8.0.150.0100.00016.76
8.0.140.0070.00016.67
8.0.130.0000.00913.24
8.0.120.0040.00416.65
8.0.110.0080.00016.84
8.0.100.0070.00016.81
8.0.90.0080.00016.83
8.0.80.0100.00916.82
8.0.70.0040.00416.64
8.0.60.0070.00016.78
8.0.50.0000.00816.85
8.0.30.0120.00616.94
8.0.20.0090.00917.40
8.0.10.0000.00716.83
8.0.00.0090.01016.68
7.4.330.0060.00015.55
7.4.320.0000.00616.43
7.4.300.0000.00616.41
7.4.290.0070.00016.64
7.4.280.0020.00716.48
7.4.270.0000.00716.50
7.4.260.0030.00316.63
7.4.250.0040.00416.48
7.4.240.0000.00716.53
7.4.230.0000.00716.33
7.4.220.0000.00816.35
7.4.210.0080.00616.48
7.4.200.0050.00316.54
7.4.160.0090.00716.50
7.4.140.0120.00917.86
7.4.130.0110.00616.39
7.4.120.0070.01116.39
7.4.110.0090.01216.33
7.4.100.0120.00616.49
7.4.90.0210.00016.40
7.4.80.0030.01819.39
7.4.70.0080.00816.50
7.4.60.0140.00716.45
7.4.50.0030.01316.49
7.4.40.0080.00816.71
7.4.10.0040.01516.25
7.4.00.0060.01115.65
7.3.330.0000.00513.09
7.3.320.0000.00713.13
7.3.310.0000.00916.20
7.3.300.0030.00316.26
7.3.290.0000.00716.32
7.3.280.0030.01016.30
7.3.260.0130.00716.28
7.3.240.0070.01016.27
7.3.230.0130.00316.15
7.3.210.0070.01416.28
7.3.200.0040.01216.39
7.3.190.0100.00716.36
7.3.180.0090.01316.26
7.3.170.0090.00916.51
7.3.160.0140.00716.49
7.3.130.0070.01016.42
7.3.120.0030.00916.20
7.3.110.0040.01216.23
7.3.100.0060.01016.10
7.3.90.0030.00716.26
7.3.80.0070.01016.34
7.3.70.0040.00816.39
7.3.60.0040.01116.14
7.3.50.0030.00716.19
7.3.40.0060.00616.27
7.3.30.0090.00916.20
7.3.20.0130.00318.04
7.3.10.0070.00318.04
7.3.00.0070.00718.11
7.2.330.0180.00016.32
7.2.320.0120.00616.50
7.2.310.0100.01316.70
7.2.300.0110.00516.65
7.2.290.0100.00716.70
7.2.260.0070.01116.26
7.2.250.0040.01816.61
7.2.240.0030.01416.62
7.2.230.0100.01016.25
7.2.220.0060.00916.31
7.2.210.0070.00416.32
7.2.200.0080.00416.50
7.2.190.0000.01416.29
7.2.180.0000.01216.59
7.2.170.0160.00316.34
7.2.160.0120.00616.48
7.2.150.0090.00618.13
7.2.140.0080.00318.47
7.2.130.0040.01118.20
7.2.120.0110.00718.45
7.2.110.0070.01017.40
7.2.100.0050.00917.32
7.2.90.0110.00317.53
7.2.80.0040.00917.31
7.2.70.0090.00517.59
7.2.60.0050.00817.46
7.2.50.0070.00717.68
7.2.40.0030.00917.61
7.2.30.0060.00917.51
7.2.20.0120.00517.43
7.2.10.0070.01017.57
7.2.00.0050.01117.52
7.1.330.0070.01017.27
7.1.320.0080.00417.30
7.1.310.0070.00717.32
7.1.300.0100.00317.12
7.1.290.0030.01017.14
7.1.280.0080.00317.03
7.1.270.0090.00917.19
7.1.260.0030.01417.18
7.1.250.0070.00717.14
7.1.240.0030.01017.01
7.1.230.0030.01016.50
7.1.220.0050.01016.25
7.1.210.0110.00316.32
7.1.200.0070.00416.29
7.1.190.0050.00816.21
7.1.180.0020.00916.44
7.1.170.0100.00316.35
7.1.160.0080.00616.19
7.1.150.0050.01016.47
7.1.140.0080.00616.28
7.1.130.0030.01016.38
7.1.120.0090.00516.39
7.1.110.0050.00916.37
7.1.100.0080.00916.38
7.1.90.0090.00316.30
7.1.80.0060.00716.31
7.1.70.0070.00616.31
7.1.60.0170.00825.36
7.1.50.0170.00525.45
7.1.40.0120.01025.50
7.1.30.0180.00925.35
7.1.20.0200.00625.52
7.1.10.0060.00616.54
7.1.00.0070.00416.13
7.0.330.0030.00916.81
7.0.320.0030.01416.84
7.0.310.0080.00417.02
7.0.300.0080.00416.84
7.0.290.0040.00817.08
7.0.280.0080.00016.70
7.0.270.0100.00316.95
7.0.260.0070.00716.87
7.0.250.0040.00416.77
7.0.240.0040.01416.82
7.0.230.0030.01016.92
7.0.220.0030.00716.96
7.0.210.0030.00916.96
7.0.200.0030.01416.71
7.0.190.0000.01616.83
7.0.180.0060.00616.97
7.0.170.0030.00816.77
7.0.160.0060.00917.00
7.0.150.0000.01117.07
7.0.140.0090.00416.82
7.0.130.0060.00617.02
7.0.120.0080.00417.07
7.0.110.0070.00416.96
7.0.100.0000.01016.91
7.0.90.0060.00316.69
7.0.80.0030.00717.01
7.0.70.0070.00716.91
7.0.60.0040.00716.99
7.0.50.0060.00616.91
7.0.40.0040.00814.86
7.0.30.0030.01014.86
7.0.20.0100.00314.89
7.0.10.0030.00614.77
7.0.00.0000.01114.94
5.6.400.0090.00615.87
5.6.390.0070.00715.62
5.6.380.0080.00814.98
5.6.370.0030.01316.07
5.6.360.0030.00915.59
5.6.350.0060.00315.71
5.6.340.0110.00415.71
5.6.330.0120.00615.72
5.6.320.0070.00716.01
5.6.310.0040.01416.09
5.6.300.0060.00615.91
5.6.290.0090.00615.67
5.6.280.0070.00415.90
5.6.270.0000.01015.66
5.6.260.0080.00415.72
5.6.250.0120.00315.86
5.6.240.0060.00315.65
5.6.230.0000.01515.94
5.6.220.0060.00615.81
5.6.210.0060.00615.94
5.6.200.0070.00715.98
5.6.190.0000.01416.04
5.6.180.0030.01415.63
5.6.170.0090.00615.91
5.6.160.0070.00715.75
5.6.150.0100.00315.87
5.6.140.0120.00315.87
5.6.130.0090.00615.94
5.6.120.0120.00316.02
5.6.110.0030.01216.03
5.6.100.0050.00515.70
5.6.90.0060.00615.91
5.6.80.0100.00315.80
5.6.70.0030.00915.61
5.6.60.0100.00315.89
5.6.50.0100.00315.66
5.6.40.0070.00715.75
5.6.30.0090.00615.65
5.6.20.0000.01315.75
5.6.10.0030.01015.79
5.6.00.0120.00315.81

preferences:
62.23 ms | 400 KiB | 5 Q