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.60.0130.00616.75
8.3.50.0090.01221.91
8.3.40.0150.00018.59
8.3.30.0070.00718.79
8.3.20.0070.00020.39
8.3.10.0000.00823.48
8.3.00.0050.00319.13
8.2.180.0030.01216.50
8.2.170.0090.00622.96
8.2.160.0130.00620.35
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0000.00917.50
8.2.120.0050.00326.35
8.2.110.0040.00720.93
8.2.100.0090.00317.72
8.2.90.0080.00017.71
8.2.80.0060.00317.97
8.2.70.0150.00017.12
8.2.60.0030.00617.80
8.2.50.0030.00618.07
8.2.40.0040.00419.34
8.2.30.0040.00420.49
8.2.20.0030.00717.63
8.2.10.0040.00417.99
8.2.00.0000.00817.86
8.1.280.0130.00725.92
8.1.270.0030.00523.92
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0000.00922.20
8.1.230.0110.00020.95
8.1.220.0000.00817.74
8.1.210.0060.00319.86
8.1.200.0060.00317.23
8.1.190.0050.00317.35
8.1.180.0030.00618.10
8.1.170.0040.00418.63
8.1.160.0000.00721.95
8.1.150.0000.00818.77
8.1.140.0030.00519.49
8.1.130.0000.00717.59
8.1.120.0050.00317.45
8.1.110.0040.00417.46
8.1.100.0050.00217.40
8.1.90.0080.00017.40
8.1.80.0000.00817.43
8.1.70.0000.00717.41
8.1.60.0030.00617.52
8.1.50.0050.00317.52
8.1.40.0060.00317.52
8.1.30.0000.00917.56
8.1.20.0070.00017.55
8.1.10.0040.00417.60
8.1.00.0030.00617.53
8.0.300.0030.00320.21
8.0.290.0050.00216.75
8.0.280.0000.00718.40
8.0.270.0040.00317.19
8.0.260.0040.00817.15
8.0.250.0030.00316.96
8.0.240.0090.00016.92
8.0.230.0030.00316.78
8.0.220.0030.00316.88
8.0.210.0000.00716.78
8.0.200.0000.00716.99
8.0.190.0040.00416.85
8.0.180.0070.00016.92
8.0.170.0060.00616.88
8.0.160.0000.00716.87
8.0.150.0070.00016.86
8.0.140.0040.00416.85
8.0.130.0000.00713.33
8.0.120.0050.00316.72
8.0.110.0000.00716.75
8.0.100.0040.00416.77
8.0.90.0000.00816.68
8.0.80.0040.02116.89
8.0.70.0000.00816.99
8.0.60.0040.00416.94
8.0.50.0000.00716.80
8.0.30.0150.00816.97
8.0.20.0120.01017.40
8.0.10.0030.00516.85
8.0.00.0120.00616.89
7.4.330.0000.00516.85
7.4.320.0040.00416.54
7.4.300.0040.00416.58
7.4.290.0070.00016.56
7.4.280.0060.00316.48
7.4.270.0000.00716.39
7.4.260.0070.00016.57
7.4.250.0040.00416.41
7.4.240.0000.00716.54
7.4.230.0000.00716.32
7.4.220.0140.00316.44
7.4.210.0000.01416.70
7.4.200.0030.00316.68
7.4.160.0100.00716.50
7.4.150.0160.00017.40
7.4.140.0090.01417.86
7.4.130.0100.00616.44
7.4.120.0060.01216.46
7.4.110.0140.00416.49
7.4.100.0100.00716.38
7.4.90.0070.01016.41
7.4.80.0030.01819.39
7.4.70.0100.01016.65
7.4.60.0030.01516.37
7.4.50.0040.01116.29
7.4.40.0100.00716.52
7.4.30.0200.00316.44
7.4.00.0060.00914.91
7.3.330.0030.00313.18
7.3.320.0060.00313.09
7.3.310.0040.00416.26
7.3.300.0030.00316.06
7.3.290.0110.00516.29
7.3.280.0100.00816.25
7.3.270.0100.00717.40
7.3.260.0070.01016.25
7.3.250.0120.00716.25
7.3.240.0060.01116.32
7.3.230.0130.00716.42
7.3.210.0100.00716.42
7.3.200.0030.01416.25
7.3.190.0090.00916.21
7.3.180.0030.01316.18
7.3.170.0130.01116.27
7.3.160.0060.00916.19
7.2.330.0030.01616.50
7.2.320.0090.00916.76
7.2.310.0040.01816.48
7.2.300.0050.01116.52
7.2.290.0160.00016.49
7.2.60.0040.01116.80
7.2.00.0030.01019.10
7.1.200.0070.01015.69
7.1.100.0080.00418.14
7.1.70.0040.00416.88
7.1.60.0120.01219.12
7.1.50.0060.01516.86
7.1.00.0000.08022.37
7.0.200.4570.00316.49
7.0.60.0030.05019.98
7.0.50.0030.05017.96
7.0.40.0070.08720.13
7.0.30.0200.08320.26
7.0.20.0330.07020.07
7.0.10.0000.05020.15
7.0.00.0030.08720.33
5.6.280.0070.03021.07
5.6.210.0030.04020.77
5.6.200.0070.03718.19
5.6.190.0030.04720.64
5.6.180.0300.04720.73
5.6.170.0200.06720.62
5.6.160.0070.06020.55
5.6.150.0070.08318.19
5.6.140.0100.08018.17
5.6.130.0000.05718.12
5.6.120.0030.06020.98
5.6.110.0000.09320.98
5.6.100.0030.04021.03
5.6.90.0030.05021.00
5.6.80.0000.08320.38
5.5.350.2970.05320.32
5.5.340.0070.05717.99
5.5.330.0070.04320.21
5.5.320.0070.08320.27
5.5.310.0100.05720.26
5.5.300.0000.04317.97
5.5.290.0030.07018.01
5.5.280.0030.04720.88
5.5.270.0000.09020.65
5.5.260.0130.07320.88
5.5.250.0100.06020.50
5.5.240.0230.03020.23

preferences:
56.87 ms | 401 KiB | 5 Q