3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Foo { public function thing($a = 'asdf'); } class MyFoo implements Foo { public function thing($a) { var_dump($a); } } $foo = new MyFoo(); $foo->thing();

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.0140.00018.38
8.3.50.0090.00921.95
8.3.40.0140.00718.66
8.3.30.0080.00518.95
8.3.20.0000.00720.16
8.3.10.0040.00422.04
8.3.00.0000.00822.43
8.2.180.0100.00716.50
8.2.170.0040.01122.96
8.2.160.0070.00722.20
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0090.00019.36
8.2.110.0030.00722.25
8.2.100.0040.00817.72
8.2.90.0040.00418.98
8.2.80.0050.00317.97
8.2.70.0060.00317.50
8.2.60.0040.00417.80
8.2.50.0060.00318.07
8.2.40.0040.00418.16
8.2.30.0030.00517.99
8.2.20.0070.00317.50
8.2.10.0030.00617.62
8.2.00.0000.00717.64
8.1.280.0100.00325.92
8.1.270.0040.00421.96
8.1.260.0030.00526.35
8.1.250.0060.00328.09
8.1.240.0030.00523.96
8.1.230.0070.00418.97
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0060.00317.09
8.1.190.0040.00417.16
8.1.180.0030.00618.10
8.1.170.0060.00318.59
8.1.160.0080.00022.01
8.1.150.0040.00418.61
8.1.140.0000.00717.29
8.1.130.0040.00417.76
8.1.120.0070.00017.39
8.1.110.0000.00717.35
8.1.100.0030.00317.35
8.1.90.0000.00717.27
8.1.80.0070.00017.32
8.1.70.0000.00717.41
8.1.60.0000.01017.53
8.1.50.0040.00417.38
8.1.40.0040.00417.43
8.1.30.0000.00817.46
8.1.20.0040.00417.65
8.1.10.0050.00317.32
8.1.00.0030.00517.25
8.0.300.0030.00318.77
8.0.290.0000.00716.93
8.0.280.0030.00318.35
8.0.270.0070.00017.20
8.0.260.0070.00016.73
8.0.250.0050.00316.85
8.0.240.0070.00016.91
8.0.230.0040.00416.86
8.0.220.0030.00316.75
8.0.210.0070.00016.79
8.0.200.0060.00316.68
8.0.190.0000.00716.95
8.0.180.0030.00316.80
8.0.170.0040.00416.88
8.0.160.0000.00816.94
8.0.150.0030.00316.91
8.0.140.0000.00716.84
8.0.130.0050.00313.32
8.0.120.0000.00816.86
8.0.110.0000.00716.91
8.0.100.0000.00716.95
8.0.90.0070.00016.71
8.0.80.0030.01316.77
8.0.70.0000.00716.73
8.0.60.0040.00416.91
8.0.50.0020.00516.82
8.0.30.0120.00717.03
8.0.20.0080.01317.40
8.0.10.0000.00717.08
8.0.00.0100.01016.73
7.4.330.0000.00615.00
7.4.320.0000.00616.34
7.4.300.0000.00616.41
7.4.290.0030.00316.50
7.4.280.0070.00016.53
7.4.270.0000.00716.57
7.4.260.0000.00716.42
7.4.250.0030.00316.46
7.4.240.0020.00616.46
7.4.230.0030.00316.58
7.4.220.0070.01016.57
7.4.210.0080.01016.45
7.4.200.0000.00716.38
7.4.190.0070.00016.40
7.4.160.0040.01416.43
7.4.150.0030.01517.40
7.4.140.0130.00717.86
7.4.130.0060.01216.64
7.4.120.0070.01016.35
7.4.110.0170.00016.51
7.4.100.0070.01016.59
7.4.90.0090.00916.29
7.4.80.0100.00719.39
7.4.70.0100.00716.43
7.4.60.0030.01316.52
7.4.50.0040.00416.50
7.4.40.0060.00622.77
7.4.30.0060.00916.32
7.4.00.0070.01014.91
7.3.330.0000.00613.23
7.3.320.0050.00013.09
7.3.310.0050.00216.27
7.3.300.0040.00416.11
7.3.290.0120.00316.23
7.3.280.0100.00616.21
7.3.270.0140.00317.40
7.3.260.0180.00016.25
7.3.250.0080.00816.47
7.3.240.0180.00016.23
7.3.230.0120.00616.40
7.3.210.0100.00716.27
7.3.200.0070.01019.39
7.3.190.0060.01016.41
7.3.180.0120.00316.25
7.3.170.0090.00616.38
7.3.160.0100.00616.35
7.3.120.0000.01214.41
7.3.10.0140.00816.23
7.3.00.0120.01216.21
7.2.330.0140.00416.34
7.2.320.0130.01316.46
7.2.310.0130.00316.36
7.2.300.0050.01516.27
7.2.290.0030.01316.35
7.2.130.0110.00616.46
7.2.120.0100.00716.56
7.2.110.0130.00916.07
7.2.100.0000.01316.41
7.2.90.0110.00716.83
7.2.80.0080.00416.57
7.2.70.0000.01116.68
7.2.60.0020.01316.60
7.2.50.0000.01116.66
7.2.40.0030.01016.68
7.2.30.0040.00416.79
7.2.20.0040.01216.52
7.2.10.0100.00016.44
7.2.00.0050.00917.73
7.1.250.0100.01015.36
7.1.200.0030.00615.59
7.1.100.0000.01318.05
7.1.70.0030.00717.05
7.1.60.0140.01119.82
7.1.50.0070.01716.86
7.1.00.0000.08022.45
7.0.200.0060.01016.29
7.0.140.0070.06722.15
7.0.60.0070.06319.96
7.0.50.0170.07017.87
7.0.40.0070.05020.36
7.0.30.0570.05720.30
7.0.20.0100.08720.15
7.0.10.0170.04720.09
7.0.00.0070.04020.05
5.6.280.0030.07320.82
5.6.210.0070.06020.69
5.6.200.0130.08018.25
5.6.190.0070.09320.41
5.6.180.0070.07720.46
5.6.170.0300.08020.55
5.6.160.0030.04720.52
5.6.150.0070.03718.17
5.6.140.0070.07318.11
5.6.130.0070.03718.12
5.6.120.0070.06321.12
5.6.110.0070.06720.97
5.6.100.0100.08020.97
5.6.90.0070.08320.96
5.6.80.0000.04720.42
5.6.70.4170.04020.43
5.5.350.0130.07020.40
5.5.340.0230.06318.07
5.5.330.0070.08720.25
5.5.320.0370.07720.27
5.5.310.0300.06020.27
5.5.300.0130.04317.98
5.5.290.0100.03717.97
5.5.280.0130.07720.95
5.5.270.0100.04020.97
5.5.260.0130.08320.64
5.5.250.0030.06020.61
5.5.240.0230.06720.16
5.4.450.0070.06019.55
5.4.440.0730.05719.30
5.4.430.0130.06719.21
5.4.420.0170.04719.38
5.4.410.0100.05319.26
5.4.400.0800.00018.53
5.4.390.0630.00018.73
5.4.380.0300.07318.63
5.4.370.0100.05718.75
5.4.360.0070.05718.59
5.4.350.0130.05718.46
5.4.340.0100.05718.86
5.4.320.0090.05012.50
5.4.310.0050.04512.50
5.4.300.0070.04612.50
5.4.290.0090.03412.50
5.4.280.0080.03312.39
5.4.270.0070.05718.97
5.4.260.0030.06318.85
5.4.250.0170.04318.96
5.4.240.0170.07018.78
5.4.230.0170.06018.95
5.4.220.0100.06018.83
5.4.210.0170.07018.91
5.4.200.0300.05318.90
5.4.190.0070.05319.01
5.4.180.0100.05319.09
5.4.170.0300.03319.09
5.4.160.0070.07718.93
5.4.150.0070.06018.98
5.4.140.0170.04716.39
5.4.130.0200.05316.40
5.4.120.0300.06316.35
5.4.110.0070.07016.52
5.4.100.0170.04016.62
5.4.90.0100.06716.55
5.4.80.0030.05716.39
5.4.70.0070.06016.36
5.4.60.0130.04316.52
5.4.50.0130.06316.46
5.4.40.0100.05716.68
5.4.30.0270.04316.53
5.4.20.0130.05716.58
5.4.10.0100.06316.48
5.4.00.0200.06015.79
5.3.290.0080.04612.80
5.3.280.0070.05314.66
5.3.270.0070.06014.82
5.3.260.0130.06014.69
5.3.250.0100.07714.44
5.3.240.0070.05314.70
5.3.230.0170.06014.57
5.3.220.0100.07314.73
5.3.210.0070.07314.54
5.3.200.0100.07314.64
5.3.190.0130.05314.55
5.3.180.0100.05714.59
5.3.170.0300.04714.64
5.3.160.0100.06314.65
5.3.150.0130.06714.54
5.3.140.0100.05014.46
5.3.130.0270.06314.73
5.3.120.0230.06014.63
5.3.110.0130.08314.53
5.3.100.0100.05314.18
5.3.90.0100.07314.00
5.3.80.0100.06313.93
5.3.70.0170.04314.09
5.3.60.0100.05014.09
5.3.50.0070.06714.02
5.3.40.0130.04713.96
5.3.30.0030.05713.89
5.3.20.0070.05313.70
5.3.10.0230.03313.72
5.3.00.0170.04313.82
5.2.170.0070.04711.23
5.2.160.0100.04711.23
5.2.150.0100.05010.98
5.2.140.0000.05011.23
5.2.130.0030.04711.06
5.2.120.0070.04710.93
5.2.110.0070.04011.18
5.2.100.0200.04311.17
5.2.90.0070.04311.00
5.2.80.0170.04011.00
5.2.70.0130.05310.93
5.2.60.0130.04711.05
5.2.50.0130.06311.01
5.2.40.0070.04310.95
5.2.30.0070.04310.93
5.2.20.0070.04010.91
5.2.10.0070.03710.85
5.2.00.0130.07010.72
5.1.60.0070.03310.10
5.1.50.0100.0479.95
5.1.40.0070.0479.90
5.1.30.0100.03710.41
5.1.20.0130.03310.44
5.1.10.0030.04010.05
5.1.00.0130.04010.04
5.0.50.0100.0338.38
5.0.40.0100.0238.65
5.0.30.0130.0508.23
5.0.20.0100.0308.34
5.0.10.0100.0378.33
5.0.00.0030.0538.36
4.4.90.0100.0276.82
4.4.80.0100.0176.82
4.4.70.0070.0306.82
4.4.60.0030.0276.82
4.4.50.0030.0236.82
4.4.40.0100.0306.82
4.4.30.0030.0276.82
4.4.20.0100.0306.82
4.4.10.0030.0276.82
4.4.00.0030.0376.82
4.3.110.0100.0236.82
4.3.100.0000.0306.82
4.3.90.0100.0206.82
4.3.80.0170.0506.82
4.3.70.0030.0276.82
4.3.60.0070.0206.82
4.3.50.0030.0236.82
4.3.40.0030.0306.82
4.3.30.0070.0176.82
4.3.20.0070.0206.82
4.3.10.0030.0276.82
4.3.00.0070.0236.53

preferences:
41.48 ms | 401 KiB | 5 Q