3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public function foo($a) { } } class bar extends foo { public function foo($a, $b) { } } (new bar)->foo();

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.70.0090.00618.50
8.3.60.0140.00016.50
8.3.50.0110.00721.16
8.3.40.0140.00018.49
8.3.30.0070.00718.54
8.3.20.0000.00720.29
8.3.10.0000.00823.64
8.3.00.0110.00723.48
8.2.190.0070.00716.58
8.2.180.0120.00616.38
8.2.170.0090.00622.96
8.2.160.0030.01020.29
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0000.00819.47
8.2.120.0000.00826.35
8.2.110.0040.00421.09
8.2.100.0120.00017.91
8.2.90.0040.00418.97
8.2.80.0000.00817.97
8.2.70.0100.00017.50
8.2.60.0030.00517.80
8.2.50.0000.00818.07
8.2.40.0030.00522.32
8.2.30.0070.00019.18
8.2.20.0050.00217.46
8.2.10.0040.00417.98
8.2.00.0040.00417.93
8.1.280.0070.00725.92
8.1.270.0070.00723.91
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0060.00617.23
8.1.230.0040.00819.15
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0030.00617.22
8.1.190.0060.00317.10
8.1.180.0000.00818.10
8.1.170.0000.00818.71
8.1.160.0050.00220.56
8.1.150.0040.00418.66
8.1.140.0040.00419.50
8.1.130.0030.00317.57
8.1.120.0000.00717.36
8.1.110.0030.00317.31
8.1.100.0030.00517.33
8.1.90.0000.00717.19
8.1.80.0070.00017.18
8.1.70.0000.00817.32
8.1.60.0060.00317.46
8.1.50.0040.00417.39
8.1.40.0040.00417.27
8.1.30.0050.00317.46
8.1.20.0030.00617.53
8.1.10.0040.00417.31
8.1.00.0040.00417.30
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0040.00418.27
8.0.270.0000.00717.02
8.0.260.0000.00617.10
8.0.250.0030.00516.90
8.0.240.0000.00716.84
8.0.230.0040.00416.75
8.0.220.0000.00816.70
8.0.210.0000.00716.81
8.0.200.0000.00616.77
8.0.190.0110.00016.85
8.0.180.0000.00716.74
8.0.170.0030.00516.90
8.0.160.0000.00716.80
8.0.150.0030.00316.87
8.0.140.0070.00016.70
8.0.130.0030.00313.18
8.0.120.0040.00416.80
8.0.110.0000.00816.80
8.0.100.0080.00016.67
8.0.90.0000.00816.71
8.0.80.0040.01116.80
8.0.70.0000.00916.81
8.0.60.0030.00316.68
8.0.50.0040.00416.61
8.0.30.0080.01016.98
8.0.20.0140.00717.40
8.0.10.0080.00016.92
8.0.00.0070.01116.71
7.4.330.0020.00216.89
7.4.320.0000.00716.39
7.4.300.0030.00316.55
7.4.290.0050.00216.44
7.4.280.0060.00616.43
7.4.270.0040.00416.48
7.4.260.0040.00416.34
7.4.250.0000.00816.30
7.4.240.0060.00216.49
7.4.230.0030.00316.63
7.4.220.0060.01316.55
7.4.210.0090.00716.40
7.4.200.0000.00716.42
7.4.160.0070.01116.33
7.4.150.0120.00817.40
7.4.140.0080.01017.86
7.4.130.0070.01316.40
7.4.120.0100.00716.52
7.4.110.0130.01016.45
7.4.100.0150.00316.64
7.4.90.0090.00916.59
7.4.80.0080.00819.39
7.4.70.0070.01116.55
7.4.60.0080.00816.45
7.4.50.0110.00416.47
7.4.40.0100.00616.48
7.4.30.0100.01016.45
7.4.00.0080.00914.83
7.3.330.0020.00213.18
7.3.320.0000.00713.36
7.3.310.0070.00016.24
7.3.300.0000.00816.24
7.3.290.0050.00216.31
7.3.280.0070.01016.40
7.3.270.0070.01017.40
7.3.260.0070.01216.50
7.3.250.0080.01016.38
7.3.240.0140.00616.47
7.3.230.0090.01016.39
7.3.210.0140.00316.47
7.3.200.0040.01819.39
7.3.190.0100.00716.59
7.3.180.0100.00616.27
7.3.170.0100.00616.59
7.3.160.0090.00616.39
7.3.120.0080.00815.54
7.3.110.0110.00315.59
7.3.100.0050.00915.59
7.3.90.0090.00515.53
7.3.80.0050.00715.59
7.3.70.0040.01015.47
7.3.60.0020.01115.54
7.3.50.0060.00915.51
7.3.40.0050.00915.54
7.3.30.0070.00415.60
7.3.20.0040.00716.79
7.3.10.0050.00916.71
7.3.00.0030.01016.80
7.2.330.0220.00316.57
7.2.320.0090.01216.54
7.2.310.0110.01116.59
7.2.300.0090.00916.44
7.2.290.0070.01416.46
7.2.250.0060.01114.95
7.2.240.0110.00915.65
7.2.230.0030.01215.60
7.2.220.0030.01115.56
7.2.210.0060.00815.73
7.2.200.0050.00715.54
7.2.190.0070.00615.56
7.2.180.0060.00615.50
7.2.170.0060.00715.64
7.2.160.0040.01117.15
7.2.150.0130.00317.15
7.2.140.0040.00417.15
7.2.130.0060.00917.04
7.2.120.0090.00717.00
7.2.110.0030.00916.85
7.2.100.0060.00916.84
7.2.90.0110.00316.97
7.2.80.0020.01016.88
7.2.70.0100.00317.03
7.2.60.0210.00616.66
7.2.50.0100.00617.06
7.2.40.0050.00617.01
7.2.30.0030.01317.01
7.2.20.0030.00916.91
7.2.10.0040.01116.80
7.2.00.0070.00817.78
7.1.330.0060.00616.15
7.1.320.0060.00716.16
7.1.310.0040.00916.15
7.1.300.0020.01016.03
7.1.290.0020.00916.12
7.1.280.0050.00816.04
7.1.270.0020.01116.13
7.1.260.0050.00916.16
7.1.250.0030.00916.23
7.1.200.0040.00715.63
7.1.100.0060.00817.89
7.1.70.0000.00816.70
7.1.60.0040.01919.18
7.1.50.0070.01516.54
7.1.00.0130.08022.40
7.0.200.0900.00916.55
7.0.60.0000.06321.71
7.0.50.0100.07717.87
7.0.40.0170.07320.10
7.0.30.0200.05720.26
7.0.20.0400.04020.09
7.0.10.0030.08720.06
7.0.00.0070.08320.24
5.6.280.0070.05321.11
5.6.210.0070.03720.71
5.6.200.0070.08018.16
5.6.190.0130.08020.57
5.6.180.0400.04720.63
5.6.170.0300.03720.62
5.6.160.0100.08720.54
5.6.150.0070.08018.19
5.6.140.0070.06718.21
5.6.130.0030.05718.14
5.6.120.0070.05021.12
5.6.110.0100.05721.01
5.6.100.0170.06021.11
5.6.90.0070.07721.03
5.6.80.0030.07320.36
5.5.350.0200.08720.49
5.5.340.0070.04318.05
5.5.330.0100.07720.19
5.5.320.0200.04720.38
5.5.310.0200.07720.27
5.5.300.0000.04017.95
5.5.290.0130.07317.92
5.5.280.0070.08320.77
5.5.270.0130.03320.87
5.5.260.0100.06320.77
5.5.250.0170.08020.68
5.5.240.0170.08020.19

preferences:
50.03 ms | 401 KiB | 5 Q