3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function bar(int $arg) { return $arg; } } $foo = new Foo(); var_dump($foo->bar('10 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.60.0110.00416.75
8.3.50.0070.01122.11
8.3.40.0000.01418.77
8.3.30.0140.00018.70
8.3.20.0000.00820.04
8.3.10.0080.00023.66
8.3.00.0080.00019.51
8.2.180.0090.00616.63
8.2.170.0070.01022.96
8.2.160.0070.01020.47
8.2.150.0060.00324.18
8.2.140.0050.00224.66
8.2.130.0030.00619.24
8.2.120.0070.00026.35
8.2.110.0070.00319.32
8.2.100.0070.00417.91
8.2.90.0000.00819.27
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0040.00717.80
8.2.50.0030.00618.07
8.2.40.0040.00419.45
8.2.30.0000.00720.69
8.2.20.0070.00317.66
8.2.10.0040.00418.05
8.2.00.0040.00417.96
8.1.280.0090.00925.92
8.1.270.0080.00023.92
8.1.260.0050.00228.09
8.1.250.0040.00428.09
8.1.240.0030.00621.43
8.1.230.0060.00617.42
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0100.00017.23
8.1.190.0040.00417.23
8.1.180.0060.00318.10
8.1.170.0000.00720.29
8.1.160.0040.00421.85
8.1.150.0030.00518.82
8.1.140.0000.00819.38
8.1.130.0000.00717.64
8.1.120.0000.00917.43
8.1.110.0080.00017.39
8.1.100.0040.00417.37
8.1.90.0050.00217.41
8.1.80.0000.00717.44
8.1.70.0000.00717.25
8.1.60.0110.00017.57
8.1.50.0000.00917.42
8.1.40.0030.00517.37
8.1.30.0030.00617.54
8.1.20.0030.00517.63
8.1.10.0030.00517.63
8.1.00.0070.00017.56
8.0.300.0000.00718.77
8.0.290.0070.00016.75
8.0.280.0000.00718.29
8.0.270.0040.00417.08
8.0.260.0000.00617.14
8.0.250.0000.00816.89
8.0.240.0000.00716.99
8.0.230.0000.00817.00
8.0.220.0090.00016.94
8.0.210.0060.00316.92
8.0.200.0050.00216.93
8.0.190.0030.00516.98
8.0.180.0070.00016.79
8.0.170.0080.00016.91
8.0.160.0030.00316.99
8.0.150.0030.00316.87
8.0.140.0040.00416.84
8.0.130.0050.00013.35
8.0.120.0060.00316.83
8.0.110.0040.00416.93
8.0.100.0040.00416.91
8.0.90.0070.00016.73
8.0.80.0040.01116.90
8.0.70.0040.00416.86
8.0.60.0090.00016.87
8.0.50.0050.00216.86
8.0.30.0050.01217.15
8.0.20.0110.00717.40
8.0.10.0000.00816.82
8.0.00.0080.01016.91
7.4.330.0030.00316.70
7.4.320.0030.00316.37
7.4.300.0000.00616.50
7.4.290.0000.00616.45
7.4.280.0000.00716.58
7.4.270.0030.00316.52
7.4.260.0030.00316.61
7.4.250.0000.00716.49
7.4.240.0000.00716.54
7.4.230.0000.00716.66
7.4.220.0000.01716.45
7.4.210.0070.00716.70
7.4.200.0030.00316.69
7.4.160.0080.00816.50
7.4.150.0130.00617.40
7.4.140.0120.00717.86
7.4.130.0090.00916.48
7.4.120.0110.00816.61
7.4.110.0100.01316.54
7.4.100.0080.00916.37
7.4.90.0130.00916.42
7.4.80.0070.01019.39
7.4.70.0050.01216.70
7.4.60.0100.00616.31
7.4.50.0030.00916.38
7.4.40.0120.00616.49
7.4.30.0030.01316.50
7.4.00.0040.01414.80
7.3.330.0070.00013.14
7.3.320.0080.00012.97
7.3.310.0050.00316.17
7.3.300.0000.00716.29
7.3.290.0100.00516.25
7.3.280.0110.00616.30
7.3.270.0090.00917.40
7.3.260.0100.00716.45
7.3.250.0110.00616.38
7.3.240.0130.00516.21
7.3.230.0060.01216.51
7.3.210.0060.01216.52
7.3.200.0060.00916.36
7.3.190.0100.01016.31
7.3.180.0110.01116.36
7.3.170.0130.00916.27
7.3.160.0200.00316.27
7.2.330.0100.00816.57
7.2.320.0060.01516.74
7.2.310.0100.00616.30
7.2.300.0080.01116.69
7.2.290.0160.00016.66
7.2.60.0060.00616.67
7.2.00.0250.00719.03
7.1.200.0080.00315.54
7.1.70.0020.00516.81
7.1.60.0060.00617.18
7.1.50.0040.00816.57
7.1.00.0100.07022.37
7.0.200.0110.00316.54
7.0.60.0130.03319.93
7.0.50.0000.04317.89
7.0.40.0070.04020.15
7.0.30.0130.04720.15
7.0.20.0230.04720.23
7.0.10.0170.07020.19
7.0.00.0100.07720.10
5.6.280.0070.05321.05
5.6.210.0070.06320.67
5.6.200.0170.07718.26
5.6.190.0030.04320.67
5.6.180.0400.04320.67
5.6.170.0230.04020.48
5.6.160.0130.07720.50
5.6.150.0070.04318.28
5.6.140.0100.03318.17
5.6.130.0100.05018.14
5.6.120.0070.07320.96
5.6.110.0130.07020.89
5.6.100.0070.07020.97
5.6.90.0100.09020.95
5.6.80.0030.07020.48
5.5.350.2730.03720.43
5.5.340.0100.07317.98
5.5.330.0070.09020.40
5.5.320.0030.04720.30
5.5.310.0230.04020.26
5.5.300.0200.04317.92
5.5.290.0100.04717.98
5.5.280.0030.08320.87
5.5.270.0200.07320.88
5.5.260.0070.05320.76
5.5.250.0130.05320.49
5.5.240.0200.07320.15

preferences:
34.91 ms | 401 KiB | 5 Q