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(1.5));

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.70.0120.00616.88
8.3.60.0060.01016.63
8.3.50.0140.00621.99
8.3.40.0100.01018.87
8.3.30.0040.01118.68
8.3.20.0070.00020.30
8.3.10.0040.00423.56
8.3.00.0000.00819.38
8.2.190.0070.01416.63
8.2.180.0110.00316.50
8.2.170.0090.00622.96
8.2.160.0100.01020.53
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0060.00317.63
8.2.120.0040.00426.35
8.2.110.0090.00021.10
8.2.100.0060.00617.79
8.2.90.0080.00017.84
8.2.80.0050.00517.97
8.2.70.0060.00617.38
8.2.60.0050.00317.91
8.2.50.0050.00318.07
8.2.40.0040.00419.48
8.2.30.0000.00720.62
8.2.20.0080.00317.61
8.2.10.0050.00317.98
8.2.00.0040.00417.86
8.1.280.0130.00725.92
8.1.270.0030.00623.91
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0080.00022.14
8.1.230.0080.00422.64
8.1.220.0040.00417.74
8.1.210.0050.00319.73
8.1.200.0080.00017.23
8.1.190.0000.00717.23
8.1.180.0040.00418.10
8.1.170.0050.00318.61
8.1.160.0040.00421.87
8.1.150.0000.00718.71
8.1.140.0060.00319.36
8.1.130.0030.00317.59
8.1.120.0050.00217.30
8.1.110.0070.00017.40
8.1.100.0000.00717.32
8.1.90.0030.00617.39
8.1.80.0050.00317.39
8.1.70.0000.00717.32
8.1.60.0000.00817.43
8.1.50.0000.00917.53
8.1.40.0050.00317.51
8.1.30.0000.00817.57
8.1.20.0040.00417.67
8.1.10.0000.00717.47
8.1.00.0070.00017.47
8.0.300.0050.00220.19
8.0.290.0070.00016.63
8.0.280.0070.00018.38
8.0.270.0070.00017.13
8.0.260.0000.00817.23
8.0.250.0060.00016.85
8.0.240.0110.00016.92
8.0.230.0070.00017.01
8.0.220.0030.00316.91
8.0.210.0030.00316.89
8.0.200.0070.00016.93
8.0.190.0000.00716.98
8.0.180.0070.00016.90
8.0.170.0060.00616.92
8.0.160.0030.00316.82
8.0.150.0070.00016.87
8.0.140.0030.00516.85
8.0.130.0030.00313.35
8.0.120.0040.00416.90
8.0.110.0070.00016.87
8.0.100.0060.00316.81
8.0.90.0000.00716.78
8.0.80.0110.00316.85
8.0.70.0040.00416.82
8.0.60.0000.00816.70
8.0.50.0040.00416.68
8.0.30.0050.01216.99
8.0.20.0130.00617.40
8.0.10.0000.00716.89
8.0.00.0090.00916.61
7.4.330.0050.00016.76
7.4.320.0040.00416.52
7.4.300.0000.00616.55
7.4.290.0040.00416.60
7.4.280.0080.00016.61
7.4.270.0040.00416.50
7.4.260.0000.00716.53
7.4.250.0030.00616.59
7.4.240.0050.00316.51
7.4.230.0000.00616.53
7.4.220.0120.00616.44
7.4.210.0150.00016.37
7.4.200.0030.00316.52
7.4.160.0000.01616.51
7.4.150.0090.00917.40
7.4.140.0080.01017.86
7.4.130.0130.00416.52
7.4.120.0050.01316.40
7.4.110.0130.00516.48
7.4.100.0060.01216.60
7.4.90.0030.01316.61
7.4.80.0150.00919.39
7.4.70.0130.00916.37
7.4.60.0100.01316.58
7.4.50.0030.01316.47
7.4.40.0070.01016.63
7.4.30.0040.01816.42
7.4.00.0090.00714.78
7.3.330.0020.00313.26
7.3.320.0030.00313.21
7.3.310.0000.00716.29
7.3.300.0070.00016.11
7.3.290.0090.00616.18
7.3.280.0050.01116.24
7.3.270.0160.00017.40
7.3.260.0060.01316.39
7.3.250.0130.00716.26
7.3.240.0080.01216.36
7.3.230.0140.00216.39
7.3.210.0090.01116.38
7.3.200.0100.00616.36
7.3.190.0090.00916.57
7.3.180.0100.00616.29
7.3.170.0100.01316.54
7.3.160.0060.00916.40
7.3.120.0030.01614.71
7.3.110.0140.00314.79
7.3.100.0030.01314.57
7.3.90.0060.00314.62
7.3.80.0040.00814.61
7.3.70.0000.00814.82
7.3.60.0060.00914.47
7.3.50.0000.00914.55
7.3.40.0060.00614.47
7.3.30.0060.00314.72
7.3.20.0060.00616.54
7.3.10.0100.00716.40
7.3.00.0060.00916.40
7.2.330.0060.01316.70
7.2.320.0040.01616.66
7.2.310.0080.01216.74
7.2.300.0100.00716.55
7.2.290.0030.01416.45
7.2.250.0130.00714.93
7.2.240.0080.00815.20
7.2.230.0070.00715.09
7.2.220.0100.01015.07
7.2.210.0070.00714.87
7.2.200.0000.00914.84
7.2.190.0030.01314.72
7.2.180.0080.00415.10
7.2.170.0100.00314.93
7.2.130.0080.00816.79
7.2.120.0080.00716.47
7.2.110.0060.00616.63
7.2.100.0060.00816.59
7.2.90.0080.00716.67
7.2.80.0060.00716.85
7.2.70.0070.01216.63
7.2.60.0070.00816.65
7.2.50.0080.00516.55
7.2.40.0090.00316.85
7.2.30.0080.00516.61
7.2.20.0050.00616.78
7.2.10.0060.00516.58
7.2.00.0030.00817.64
7.1.330.0000.01515.73
7.1.320.0060.01315.62
7.1.310.0030.00915.55
7.1.300.0060.00315.82
7.1.290.0060.00315.53
7.1.280.0130.00315.77
7.1.270.0030.01015.61
7.1.260.0040.01215.67
7.1.250.0030.00715.42
7.1.200.0060.00915.42
7.1.100.0000.00817.86
7.1.70.0030.00916.82
7.1.60.0100.01619.12
7.1.50.0100.01016.84
7.1.00.0030.07722.33
7.0.200.0000.01214.47
7.0.60.0100.05720.08
7.0.50.0100.05317.89
7.0.40.0030.06720.02
7.0.30.0300.06720.16
7.0.20.0230.08020.35
7.0.10.0070.04320.12
7.0.00.0130.04720.16
5.6.280.0070.06021.02
5.6.210.0030.04020.47
5.6.200.0000.04318.16
5.6.190.0070.08720.46
5.6.180.0400.07720.33
5.6.170.0230.05720.52
5.6.160.0030.04320.46
5.6.150.0100.08018.27
5.6.140.0070.06018.18
5.6.130.0070.06318.28
5.6.120.0130.08020.95
5.6.110.0070.05020.98
5.6.100.0000.04721.13
5.6.90.0070.05021.10
5.6.80.0130.08020.51
5.5.350.2530.03720.40
5.5.340.0030.04718.02
5.5.330.0170.06720.31
5.5.320.0030.04020.27
5.5.310.0200.04020.34
5.5.300.0070.03317.94
5.5.290.0100.06318.02
5.5.280.0000.04320.64
5.5.270.0030.06020.64
5.5.260.0100.08020.86
5.5.250.0170.07320.59
5.5.240.0200.03020.24

preferences:
54.95 ms | 401 KiB | 5 Q