3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function bar(int $arg) { return $arg; } } $foo = new Foo(); try { var_dump($foo->bar('1 foo')); } catch (Error $e) { echo '!!!' . $e->getMessage() . '!!!'; }

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.0160.00016.75
8.3.60.0110.00416.38
8.3.50.0120.00621.92
8.3.40.0040.01118.80
8.3.30.0040.01118.77
8.3.20.0050.00320.21
8.3.10.0050.00323.63
8.3.00.0080.00019.38
8.2.190.0110.00716.58
8.2.180.0150.00318.29
8.2.170.0040.01122.96
8.2.160.0110.00320.35
8.2.150.0080.00024.18
8.2.140.0050.00224.66
8.2.130.0000.00726.16
8.2.120.0050.00321.09
8.2.110.0060.00320.47
8.2.100.0060.00617.93
8.2.90.0040.00418.95
8.2.80.0080.00017.97
8.2.70.0060.00317.63
8.2.60.0040.00418.03
8.2.50.0030.00618.07
8.2.40.0040.00419.46
8.2.30.0030.00720.63
8.2.20.0030.00517.63
8.2.10.0070.00018.16
8.2.00.0000.00718.18
8.1.280.0100.00725.92
8.1.270.0000.00923.91
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0080.00022.19
8.1.230.0070.00317.65
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0030.00617.25
8.1.190.0000.00817.35
8.1.180.0030.00618.10
8.1.170.0040.00418.59
8.1.160.0070.00021.95
8.1.150.0040.00418.76
8.1.140.0040.00419.56
8.1.130.0070.00017.61
8.1.120.0060.00317.42
8.1.110.0070.00017.38
8.1.100.0040.00417.38
8.1.90.0030.00517.51
8.1.80.0040.00417.36
8.1.70.0000.00717.32
8.1.60.0060.00617.59
8.1.50.0050.00317.43
8.1.40.0000.00817.40
8.1.30.0020.00917.54
8.1.20.0030.00517.55
8.1.10.0000.00817.48
8.1.00.0000.00717.36
8.0.300.0040.00418.77
8.0.290.0030.00616.75
8.0.280.0030.00318.45
8.0.270.0000.00717.17
8.0.260.0060.00017.17
8.0.250.0000.00716.91
8.0.240.0000.00716.91
8.0.230.0050.00216.99
8.0.220.0030.00616.82
8.0.210.0060.00316.90
8.0.200.0000.00716.88
8.0.190.0000.00716.99
8.0.180.0070.00016.88
8.0.170.0040.00417.01
8.0.160.0000.00716.93
8.0.150.0090.00017.02
8.0.140.0070.00016.98
8.0.130.0000.00613.34
8.0.120.0080.00016.80
8.0.110.0050.00316.91
8.0.100.0050.00316.73
8.0.90.0070.00016.73
8.0.80.0090.00616.93
8.0.70.0050.00216.91
8.0.60.0000.00716.88
8.0.50.0050.00216.89
8.0.30.0090.00917.15
8.0.20.0100.00817.40
8.0.10.0040.00417.05
8.0.00.0100.00716.94
7.4.330.0000.00516.73
7.4.320.0000.00716.55
7.4.300.0030.00316.57
7.4.290.0070.00016.57
7.4.280.0040.00416.41
7.4.270.0030.00316.51
7.4.260.0030.00316.53
7.4.250.0030.00616.59
7.4.240.0000.00716.61
7.4.230.0040.00416.45
7.4.220.0150.00316.53
7.4.210.0030.01316.64
7.4.200.0030.00316.60
7.4.160.0060.00916.57
7.4.150.0120.00917.40
7.4.140.0110.00917.86
7.4.130.0070.01016.58
7.4.120.0080.01016.50
7.4.110.0060.01616.50
7.4.100.0070.01516.64
7.4.90.0070.01016.67
7.4.80.0060.01019.39
7.4.70.0090.01516.46
7.4.60.0090.00816.52
7.4.50.0090.00616.66
7.4.40.0070.01416.51
7.4.30.0140.00716.35
7.4.00.0090.00615.03
7.3.330.0040.00413.38
7.3.320.0070.00013.33
7.3.310.0040.00416.20
7.3.300.0030.00316.32
7.3.290.0060.00916.29
7.3.280.0090.00816.30
7.3.270.0030.01417.40
7.3.260.0070.01016.24
7.3.250.0100.00816.36
7.3.240.0140.00316.36
7.3.230.0080.01116.39
7.3.210.0070.01016.38
7.3.200.0140.00716.35
7.3.190.0130.00316.47
7.3.180.0120.00416.56
7.3.170.0070.01116.27
7.3.160.0100.01016.54
7.3.10.0040.01116.57
7.3.00.0000.01416.61
7.2.330.0090.00916.67
7.2.320.0170.00716.34
7.2.310.0090.01216.53
7.2.300.0100.00716.61
7.2.290.0100.00716.63
7.2.130.0030.01016.69
7.2.120.0000.01516.92
7.2.110.0030.00716.79
7.2.100.0000.01516.82
7.2.90.0120.00316.98
7.2.80.0000.01916.60
7.2.70.0060.01216.50
7.2.60.0020.01116.58
7.2.50.0060.00916.79
7.2.40.0060.00616.88
7.2.30.0070.01016.86
7.2.20.0030.01316.95
7.2.10.0080.00517.00
7.2.00.0040.00716.71
7.1.250.0000.00815.70
7.1.200.0110.00315.48
7.1.100.0000.01117.88
7.1.70.0060.00617.22
7.1.60.0090.01319.36
7.1.50.0030.01716.46
7.1.00.0000.07722.31
7.0.200.0000.00816.70
7.0.60.0070.07719.87
7.0.50.0030.04017.83
7.0.40.0070.04320.21
7.0.30.0200.03320.37
7.0.20.0300.08320.19
7.0.10.0170.04320.09
7.0.00.0130.07720.12
5.6.280.0000.03320.91
5.6.210.0000.04720.50
5.6.200.0070.06018.24
5.6.190.0100.03720.57
5.6.180.0430.06320.49
5.6.170.0200.03720.71
5.6.160.0030.04020.57
5.6.150.0000.07718.23
5.6.140.0130.04318.20
5.6.130.0030.04718.28
5.6.120.0100.05021.15
5.6.110.0130.04021.09
5.6.100.0070.07321.11
5.6.90.0030.05021.08
5.6.80.0100.07320.38
5.5.350.4230.03720.43
5.5.340.0030.08718.07
5.5.330.0070.04320.31
5.5.320.0070.08020.20
5.5.310.0300.07720.34
5.5.300.0030.06017.99
5.5.290.0070.08017.97
5.5.280.0130.08020.80
5.5.270.0070.07020.65
5.5.260.0130.05320.64
5.5.250.0100.07720.62
5.5.240.0300.06320.19

preferences:
17.93 ms | 401 KiB | 5 Q