3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function test($foo = null) {} } class Bar extends Foo { public function test() {} } $bar = new Bar; $bar->test();

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.0040.01116.38
8.3.50.0130.00821.92
8.3.40.0090.00618.85
8.3.30.0060.00918.40
8.3.20.0070.00020.30
8.3.10.0040.00423.48
8.3.00.0040.00419.26
8.2.180.0090.00918.13
8.2.170.0070.00722.96
8.2.160.0030.01020.52
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0030.01017.50
8.2.110.0030.00620.75
8.2.100.0030.00917.59
8.2.90.0040.00417.78
8.2.80.0030.00519.39
8.2.70.0000.00917.89
8.2.60.0050.00317.68
8.2.50.0110.00018.10
8.2.40.0000.00720.66
8.2.30.0000.00720.60
8.2.20.0070.00017.61
8.2.10.0070.00017.96
8.2.00.0040.00418.03
8.1.280.0100.00725.92
8.1.270.0060.00323.79
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0050.00522.33
8.1.230.0040.00722.75
8.1.220.0030.00517.74
8.1.210.0060.00318.77
8.1.200.0000.01017.23
8.1.190.0050.00316.98
8.1.180.0090.00018.10
8.1.170.0000.00918.51
8.1.160.0040.00422.23
8.1.150.0040.00418.68
8.1.140.0030.00519.44
8.1.130.0070.00017.61
8.1.120.0000.00817.23
8.1.110.0040.00417.27
8.1.100.0040.00417.31
8.1.90.0050.00217.36
8.1.80.0030.00517.20
8.1.70.0000.00717.26
8.1.60.0040.00417.33
8.1.50.0080.00017.39
8.1.40.0000.00817.43
8.1.30.0000.00817.48
8.1.20.0000.00717.45
8.1.10.0000.00717.34
8.1.00.0030.00517.32
8.0.300.0040.00419.69
8.0.290.0050.00216.75
8.0.280.0030.00318.22
8.0.270.0070.00017.15
8.0.260.0000.00617.17
8.0.250.0040.00416.85
8.0.240.0000.00816.86
8.0.230.0090.00016.89
8.0.220.0030.00316.72
8.0.210.0000.00716.79
8.0.200.0030.00316.89
8.0.190.0040.00416.75
8.0.180.0040.00416.82
8.0.170.0000.00716.70
8.0.160.0030.00316.74
8.0.150.0030.00416.64
8.0.140.0040.00316.66
8.0.130.0000.00513.18
8.0.120.0080.00016.71
8.0.110.0000.00716.73
8.0.100.0030.00616.88
8.0.90.0080.00016.78
8.0.80.0150.00416.77
8.0.70.0000.00716.82
8.0.60.0000.00716.68
8.0.50.0070.00016.63
8.0.30.0100.00916.76
8.0.20.0130.01117.40
8.0.10.0000.00716.93
8.0.00.0080.00816.65
7.4.330.0020.00215.14
7.4.320.0000.00716.54
7.4.300.0000.00716.55
7.4.290.0070.00016.49
7.4.280.0040.00416.38
7.4.270.0000.00716.51
7.4.260.0000.00716.62
7.4.250.0000.00716.47
7.4.240.0030.00416.57
7.4.230.0000.00716.35
7.4.220.0150.00916.61
7.4.210.0040.01116.58
7.4.200.0030.00316.43
7.4.160.0070.01016.66
7.4.150.0130.00717.40
7.4.140.0140.00917.86
7.4.130.0080.01316.56
7.4.120.0080.01116.44
7.4.110.0170.00716.47
7.4.100.0100.01016.68
7.4.90.0060.01216.52
7.4.80.0120.00919.39
7.4.70.0080.00816.39
7.4.60.0040.01416.39
7.4.50.0040.00416.50
7.4.40.0040.01316.37
7.4.30.0070.01116.50
7.4.00.0090.00615.00
7.3.330.0000.00613.33
7.3.320.0050.00013.34
7.3.310.0030.00316.34
7.3.300.0000.00616.25
7.3.290.0030.00616.35
7.3.280.0130.00616.27
7.3.270.0100.00717.40
7.3.260.0140.00416.45
7.3.240.0090.00816.21
7.3.230.0090.00816.39
7.3.210.0100.00716.37
7.3.200.0130.00316.36
7.3.190.0130.00316.51
7.3.180.0110.01116.25
7.3.170.0120.00816.52
7.3.160.0130.00316.28
7.3.10.0080.00416.25
7.3.00.0140.01016.57
7.2.330.0000.01816.49
7.2.320.0120.00916.27
7.2.310.0100.00716.45
7.2.300.0030.01316.45
7.2.290.0110.01116.35
7.2.130.0100.01016.27
7.2.120.0120.00916.20
7.2.110.0110.00716.21
7.2.100.0110.00716.45
7.2.90.0140.00416.14
7.2.80.0190.00315.93
7.2.70.0040.01116.42
7.2.60.0100.00716.56
7.2.50.0180.00316.24
7.2.40.0130.00316.11
7.2.30.0150.00815.92
7.2.20.0110.00716.58
7.2.10.0090.01016.14
7.2.00.0060.00917.85
7.1.250.0060.00915.41
7.1.200.0080.00615.60
7.1.100.0000.00817.95
7.1.70.0000.00917.02
7.1.60.0060.01619.43
7.1.50.0030.01916.86
7.1.00.0130.06722.35
7.0.200.0260.00614.81
7.0.60.0030.08319.92
7.0.50.0100.05017.83
7.0.40.0030.04320.28
7.0.30.0430.03720.34
7.0.20.0200.05320.20
7.0.10.0030.04320.06
7.0.00.0170.04020.17
5.6.210.0070.09020.77
5.6.200.0070.08318.16
5.6.190.0100.07320.41
5.6.180.0300.04320.46
5.6.170.0170.05720.50
5.6.160.0130.06020.52
5.6.150.0100.08018.23
5.6.140.0100.08318.28
5.6.130.0100.05018.11
5.6.120.0030.04721.05
5.6.110.0070.08320.98
5.6.100.0230.05020.98
5.6.90.0130.05021.13
5.6.80.0070.08020.53
5.5.350.0400.05720.47
5.5.340.0230.06318.09
5.5.330.0100.05020.33
5.5.320.0370.06720.28
5.5.310.0130.05320.27
5.5.300.0070.05717.97
5.5.290.0070.08318.04
5.5.280.0130.07720.98
5.5.270.0030.05020.88
5.5.260.0070.06720.79
5.5.250.0030.07720.71
5.5.240.0130.07320.26
5.4.450.0200.07019.17
5.4.440.0200.05019.16
5.4.430.0200.04719.33
5.4.420.0170.05019.46
5.4.410.0130.05719.57
5.4.400.0070.05719.30
5.4.390.0130.05319.25
5.4.380.0200.04319.39
5.4.370.0170.05019.32
5.4.360.0200.04719.23
5.4.350.0100.05719.05
5.4.340.0200.04718.84
5.4.320.0230.05319.28
5.4.310.0170.05319.22
5.4.300.0170.04719.30
5.4.290.0100.05718.88
5.4.280.0200.04718.85
5.4.270.0200.05018.86
5.4.260.0200.04719.30
5.4.250.0170.05019.27
5.4.240.0200.04719.15
5.4.230.0130.05319.13
5.4.220.0170.05319.24
5.4.210.0200.04719.09
5.4.200.0200.04319.13
5.4.190.0270.04019.23
5.4.180.0130.05719.29
5.4.170.0230.04318.99
5.4.160.0270.04018.83
5.4.150.0200.05019.12
5.4.140.0230.04316.54
5.4.130.0230.04016.47
5.4.120.0170.05016.39
5.4.110.0230.04316.65
5.4.100.0170.05016.57
5.4.90.0200.04016.66
5.4.80.0030.05716.61
5.4.70.0200.04316.54
5.4.60.0130.06316.21
5.4.50.0130.05316.27
5.4.40.0130.05016.23
5.4.30.0130.05316.56
5.4.20.0100.05316.49
5.4.10.0300.05316.59
5.4.00.0230.05015.74

preferences:
68.74 ms | 401 KiB | 5 Q