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('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.0140.00716.75
8.3.50.0120.00318.18
8.3.40.0110.00418.84
8.3.30.0070.00718.54
8.3.20.0040.00420.16
8.3.10.0060.00323.52
8.3.00.0050.00319.38
8.2.180.0030.01218.29
8.2.170.0060.01222.96
8.2.160.0070.00720.39
8.2.150.0020.00524.18
8.2.140.0040.00424.66
8.2.130.0070.00726.16
8.2.120.0060.00320.89
8.2.110.0040.00420.53
8.2.100.0040.00817.63
8.2.90.0040.00419.21
8.2.80.0040.00417.97
8.2.70.0050.00317.50
8.2.60.0000.00717.80
8.2.50.0030.00518.07
8.2.40.0040.00419.50
8.2.30.0040.00420.49
8.2.20.0070.00317.57
8.2.10.0000.00817.89
8.2.00.0050.00318.00
8.1.280.0120.00325.92
8.1.270.0030.00623.83
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0090.00023.92
8.1.230.0110.00017.42
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0000.01017.13
8.1.190.0000.00817.25
8.1.180.0040.00418.10
8.1.170.0030.00618.65
8.1.160.0040.00421.97
8.1.150.0000.00718.69
8.1.140.0040.00419.55
8.1.130.0030.00317.56
8.1.120.0070.00017.42
8.1.110.0000.00717.31
8.1.100.0050.00217.39
8.1.90.0030.00617.31
8.1.80.0020.00517.35
8.1.70.0070.00017.42
8.1.60.0030.00517.58
8.1.50.0080.00017.49
8.1.40.0030.00917.54
8.1.30.0080.00017.71
8.1.20.0040.00417.58
8.1.10.0040.00417.54
8.1.00.0040.00417.52
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0030.00518.24
8.0.270.0000.00717.18
8.0.260.0070.00017.20
8.0.250.0000.00816.98
8.0.240.0080.00016.96
8.0.230.0070.00016.90
8.0.220.0000.00816.92
8.0.210.0030.00316.73
8.0.200.0000.00616.91
8.0.190.0040.00416.91
8.0.180.0000.00716.89
8.0.170.0040.00416.87
8.0.160.0030.00316.90
8.0.150.0040.00316.89
8.0.140.0050.00316.90
8.0.130.0000.00813.32
8.0.120.0040.00416.73
8.0.110.0000.00716.93
8.0.100.0000.00716.69
8.0.90.0030.00316.83
8.0.80.0130.00416.86
8.0.70.0000.00816.84
8.0.60.0040.00416.92
8.0.50.0040.00416.71
8.0.30.0100.00716.90
8.0.20.0070.01117.40
8.0.10.0040.00416.90
8.0.00.0120.00816.75
7.4.330.0000.00616.67
7.4.320.0030.00316.52
7.4.300.0060.00016.39
7.4.290.0030.00316.51
7.4.280.0040.00416.49
7.4.270.0000.00716.45
7.4.260.0070.00016.38
7.4.250.0000.00816.52
7.4.240.0010.00616.56
7.4.230.0000.00716.57
7.4.220.0030.01416.53
7.4.210.0040.01116.63
7.4.200.0000.00716.57
7.4.160.0080.00816.40
7.4.150.0090.00917.40
7.4.140.0140.00817.86
7.4.130.0100.00716.59
7.4.120.0060.01316.51
7.4.110.0100.01016.54
7.4.100.0150.00316.38
7.4.90.0110.00716.50
7.4.80.0080.01219.39
7.4.70.0120.00616.42
7.4.60.0100.01016.39
7.4.50.0140.00316.38
7.4.40.0140.00716.27
7.4.30.0100.00716.56
7.4.00.0070.01015.05
7.3.330.0050.00013.34
7.3.320.0000.00513.47
7.3.310.0000.00816.32
7.3.300.0000.00716.23
7.3.290.0080.01016.36
7.3.280.0120.00516.37
7.3.270.0060.01517.40
7.3.260.0110.01116.63
7.3.250.0130.00516.41
7.3.240.0130.00316.39
7.3.230.0100.00616.55
7.3.210.0100.00716.58
7.3.200.0160.00016.42
7.3.190.0070.01016.60
7.3.180.0040.01216.29
7.3.170.0130.00316.38
7.3.160.0080.00816.47
7.2.330.0100.01316.34
7.2.320.0150.00316.68
7.2.310.0100.01016.37
7.2.300.0100.00616.65
7.2.290.0090.01216.75
7.2.60.0110.00416.88
7.2.00.0000.01619.27
7.1.200.0090.00415.65
7.1.100.0090.00617.81
7.1.70.0090.00417.23
7.1.60.0150.00919.36
7.1.50.0040.00716.94
7.1.00.0070.07322.54
7.0.200.0620.00014.65
7.0.60.0130.07020.05
7.0.50.0070.04717.98
7.0.40.0000.04720.20
7.0.30.0500.04320.23
7.0.20.0300.07720.07
7.0.10.0170.07720.09
7.0.00.0000.05320.05
5.6.280.0000.03321.10
5.6.210.0130.03720.75
5.6.200.0030.07018.18
5.6.190.0030.06020.61
5.6.180.1500.03320.67
5.6.170.0300.07320.56
5.6.160.0100.04020.57
5.6.150.0030.06018.29
5.6.140.0070.05718.14
5.6.130.0070.05018.11
5.6.120.0100.07720.97
5.6.110.0100.04021.08
5.6.100.0100.07321.14
5.6.90.0000.04721.10
5.6.80.0100.07720.54
5.5.350.3670.04320.32
5.5.340.0030.06717.99
5.5.330.0000.05720.29
5.5.320.0000.05020.38
5.5.310.0170.05020.37
5.5.300.0000.04718.07
5.5.290.0000.09017.98
5.5.280.0000.04320.98
5.5.270.0100.06020.73
5.5.260.0130.08020.87
5.5.250.0000.04320.68
5.5.240.0270.04320.16

preferences:
31.62 ms | 400 KiB | 5 Q