3v4l.org

run code in 300+ PHP versions simultaneously
<?php Interface foo { public function bar($argument); } class A implements foo { public function bar(string $argument) { return $argument; } } $a = new A(); var_dump($a->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.4.130.0100.01217.61
8.4.120.0140.00717.91
8.4.110.0130.00817.75
8.4.100.0050.00519.32
8.4.90.0050.00922.34
8.4.80.0110.00818.95
8.4.70.0040.00619.17
8.4.60.0120.00918.60
8.4.50.0140.00618.76
8.4.40.0120.00917.66
8.4.30.0120.00918.58
8.4.20.0060.01519.82
8.4.10.0030.00619.46
8.3.260.0110.00816.73
8.3.250.0110.00416.77
8.3.240.0060.01116.70
8.3.230.0120.00516.76
8.3.220.0120.00618.81
8.3.210.0050.01216.69
8.3.200.0030.00516.84
8.3.190.0120.00717.29
8.3.180.0090.00518.88
8.3.170.0120.00318.23
8.3.160.0120.00617.01
8.3.150.0070.01119.01
8.3.140.0080.00018.82
8.3.130.0080.00018.57
8.3.120.0090.00018.78
8.3.110.0040.00420.94
8.3.100.0040.00424.06
8.3.90.0100.00026.77
8.3.80.0060.00316.88
8.3.70.0110.00718.43
8.3.60.0060.01618.68
8.3.50.0130.00524.43
8.3.40.0190.00318.67
8.3.30.0090.00618.71
8.3.20.0070.00024.18
8.3.10.0080.00024.66
8.3.00.0080.00026.16
8.2.290.0120.00816.63
8.2.280.0060.00218.20
8.2.270.0100.01018.38
8.2.260.0060.00316.35
8.2.250.0030.00516.43
8.2.240.0000.00817.13
8.2.230.0030.00622.58
8.2.220.0070.00737.54
8.2.210.0060.00926.77
8.2.200.0040.00416.38
8.2.190.0090.00616.63
8.2.180.0170.00325.92
8.2.170.0150.00018.66
8.2.160.0000.01322.96
8.2.150.0070.00025.66
8.2.140.0070.00024.66
8.2.130.0000.00726.16
8.2.120.0000.00826.35
8.2.110.0030.00620.43
8.2.100.0040.00817.84
8.2.90.0030.00619.52
8.2.80.0050.00318.03
8.2.70.0050.00317.50
8.2.60.0000.00817.25
8.2.50.0040.00418.05
8.2.40.0060.00318.09
8.2.30.0000.00717.88
8.2.20.0050.00318.02
8.2.10.0070.00019.06
8.2.00.0040.00419.28
8.1.330.0110.01116.26
8.1.320.0130.00617.84
8.1.310.0100.00316.51
8.1.300.0040.01118.19
8.1.290.0060.00330.84
8.1.280.0100.00325.92
8.1.270.0040.00420.64
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0060.00323.78
8.1.230.0070.00420.85
8.1.220.0000.00717.74
8.1.210.0040.00418.77
8.1.200.0050.00317.23
8.1.190.0050.00317.10
8.1.180.0040.00419.01
8.1.170.0000.00818.50
8.1.160.0000.00718.70
8.1.150.0070.00018.72
8.1.140.0000.00818.79
8.1.130.0000.00720.04
8.1.120.0040.00417.29
8.1.110.0030.00617.27
8.1.100.0040.00417.38
8.1.90.0040.00417.27
8.1.80.0040.00417.41
8.1.70.0040.00417.42
8.1.60.0040.00417.46
8.1.50.0020.00517.45
8.1.40.0060.00317.43
8.1.30.0000.00717.54
8.1.20.0050.00317.49
8.1.10.0000.00817.41
8.1.00.0030.00617.24
8.0.300.0040.00419.93
8.0.290.0050.00216.75
8.0.280.0030.00318.38
8.0.270.0070.00017.87
8.0.260.0040.00418.39
8.0.250.0030.00317.00
8.0.240.0040.00416.88
8.0.230.0000.00716.98
8.0.220.0000.00716.89
8.0.210.0030.00316.87
8.0.200.0000.00816.98
8.0.190.0000.00816.86
8.0.180.0080.00016.88
8.0.170.0060.00316.88
8.0.160.0000.00816.88
8.0.150.0000.00716.70
8.0.140.0030.00516.90
8.0.130.0030.00313.38
8.0.120.0040.00416.82
8.0.110.0030.00616.81
8.0.100.0070.00016.99
8.0.90.0030.00316.86
8.0.80.0030.01416.91
8.0.70.0000.00716.90
8.0.60.0040.00316.69
8.0.50.0000.00716.95
8.0.30.0110.00617.07
8.0.20.0200.00416.88
8.0.10.0000.00716.82
8.0.00.0130.00716.59
7.4.330.0050.00015.55
7.4.320.0000.00616.43
7.4.300.0030.00616.57
7.4.290.0040.00416.51
7.4.280.0000.00816.47
7.4.270.0000.00716.46
7.4.260.0000.00613.15
7.4.250.0000.00816.38
7.4.240.0070.00016.36
7.4.230.0070.00016.54
7.4.220.0040.00316.47
7.4.210.0050.01216.53
7.4.200.0030.00316.64
7.4.130.0100.00816.44
7.4.120.0090.00916.43
7.4.110.0080.01216.56
7.4.100.0170.00716.36
7.4.90.0070.01416.70
7.4.80.0060.00919.39
7.4.70.0040.01216.44
7.4.60.0150.00416.30
7.4.50.0120.00616.49
7.4.40.0080.00816.20
7.4.30.0040.01516.48
7.4.20.0160.00016.41
7.4.10.0090.00916.46
7.4.00.0090.00616.20
7.3.330.0000.00716.21
7.3.320.0080.00013.24
7.3.310.0000.00716.28
7.3.300.0070.00016.23
7.3.290.0050.00716.27
7.3.280.0060.00916.21
7.3.260.0050.01416.48
7.3.230.0170.00716.22
7.3.210.0100.00716.42
7.3.200.0080.01216.08
7.3.190.0130.00616.43
7.3.180.0100.00716.27
7.3.170.0040.01316.36
7.3.160.0130.00416.41
7.3.150.0170.00016.13
7.3.140.0130.00316.42
7.3.130.0090.00916.42
7.3.120.0080.01016.28
7.3.110.0120.00916.23
7.3.100.0060.01116.23
7.3.90.0110.00716.23
7.3.80.0110.00816.38
7.3.70.0070.01116.38
7.3.60.0180.01116.25
7.3.50.0280.00816.27
7.3.40.0060.01216.24
7.3.30.0040.01216.34
7.3.20.0100.00716.35
7.3.10.0090.00916.28
7.3.00.0190.00016.31
7.2.330.0100.00616.38
7.2.320.0060.01216.62
7.2.310.0130.00516.44
7.2.300.0160.00016.54
7.2.290.0090.00916.51
7.2.280.0070.01016.57
7.2.270.0100.00716.22
7.2.260.0080.01216.47
7.2.250.0120.00616.54
7.2.240.0100.00616.49
7.2.230.0040.01416.65
7.2.220.0090.00916.29
7.2.210.0130.01016.59
7.2.200.0080.00916.57
7.2.190.0160.00316.49
7.2.180.0080.00816.21
7.2.170.0030.01616.54
7.2.160.0060.01016.54
7.2.150.0120.00616.35
7.2.140.0200.00416.57
7.2.130.0040.01316.36
7.2.120.0150.00916.26
7.2.110.0140.01016.65
7.2.100.0130.00816.54
7.2.90.0100.01016.42
7.2.80.0060.01216.45
7.2.70.0220.00316.56
7.2.60.0120.01216.59
7.2.50.0170.01016.29
7.2.40.0110.00816.35
7.2.30.0080.01216.18
7.2.20.0080.01216.31
7.2.10.0120.00916.01
7.2.00.0120.00616.41

preferences:
153.91 ms | 403 KiB | 5 Q