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('0 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.0210.00016.75
8.3.50.0050.01018.27
8.3.40.0170.00018.79
8.3.30.0040.01118.71
8.3.20.0040.00420.34
8.3.10.0040.00423.65
8.3.00.0080.00019.38
8.2.180.0130.00318.54
8.2.170.0170.00022.96
8.2.160.0110.00320.45
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0050.00317.50
8.2.120.0050.00326.35
8.2.110.0030.00622.26
8.2.100.0060.00617.50
8.2.90.0080.00019.08
8.2.80.0000.00817.97
8.2.70.0030.00617.50
8.2.60.0060.00317.88
8.2.50.0030.00618.07
8.2.40.0030.00519.38
8.2.30.0040.00420.50
8.2.20.0040.00417.55
8.2.10.0030.00618.10
8.2.00.0000.00817.98
8.1.270.0040.00423.88
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0060.00323.92
8.1.230.0080.00417.42
8.1.220.0090.00017.74
8.1.210.0040.00418.77
8.1.200.0030.00617.22
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0040.00418.84
8.1.160.0070.00021.94
8.1.150.0050.00218.83
8.1.140.0050.00319.41
8.1.130.0000.00717.67
8.1.120.0070.00017.39
8.1.110.0040.00417.42
8.1.100.0050.00317.43
8.1.90.0040.00417.31
8.1.80.0000.00717.28
8.1.70.0040.00417.32
8.1.60.0000.00717.59
8.1.50.0060.00317.52
8.1.40.0000.01117.39
8.1.30.0000.00817.48
8.1.20.0000.00817.63
8.1.10.0040.00417.50
8.1.00.0080.00017.54
8.0.300.0060.00318.77
8.0.290.0040.00416.63
8.0.280.0030.00518.29
8.0.270.0030.00317.17
8.0.260.0070.00017.23
8.0.250.0000.00816.97
8.0.240.0000.00816.93
8.0.230.0020.00516.86
8.0.220.0000.00716.76
8.0.210.0030.00316.86
8.0.200.0060.00016.87
8.0.190.0050.00316.83
8.0.180.0070.00016.95
8.0.170.0040.00716.80
8.0.160.0030.00316.97
8.0.150.0050.00316.71
8.0.140.0000.00716.82
8.0.130.0060.00013.34
8.0.120.0080.00016.72
8.0.110.0000.00716.79
8.0.100.0040.00416.88
8.0.90.0040.00416.79
8.0.80.0000.01616.90
8.0.70.0070.00016.71
8.0.60.0000.00716.75
8.0.50.0050.00316.84
8.0.30.0110.00516.94
8.0.20.0120.00617.40
8.0.10.0050.00216.88
8.0.00.0100.00916.94
7.4.330.0000.00615.08
7.4.320.0030.00316.40
7.4.300.0060.00016.48
7.4.290.0050.00316.45
7.4.280.0000.00716.56
7.4.270.0000.00716.52
7.4.260.0000.00816.48
7.4.250.0050.00216.44
7.4.240.0050.00216.55
7.4.230.0030.00316.62
7.4.220.0090.00916.51
7.4.210.0120.00616.55
7.4.200.0000.00716.39
7.4.160.0090.00616.46
7.4.150.0190.00017.40
7.4.140.0110.01017.86
7.4.130.0050.01416.55
7.4.120.0090.01216.59
7.4.110.0040.01316.37
7.4.100.0100.01016.39
7.4.90.0090.00916.22
7.4.80.0060.01019.39
7.4.70.0170.00016.31
7.4.60.0070.01116.48
7.4.50.0070.01116.37
7.4.40.0120.00916.57
7.4.30.0040.01416.54
7.4.00.0090.00315.04
7.3.330.0050.00013.29
7.3.320.0050.00013.16
7.3.310.0000.00716.15
7.3.300.0000.00616.16
7.3.290.0090.00716.24
7.3.280.0060.01116.26
7.3.270.0100.01017.40
7.3.260.0000.01716.25
7.3.250.0110.00616.40
7.3.240.0100.00616.32
7.3.230.0100.00716.55
7.3.210.0060.01116.23
7.3.200.0060.00916.54
7.3.190.0100.00616.50
7.3.180.0080.00816.21
7.3.170.0060.01016.51
7.3.160.0040.01216.51
7.2.330.0090.00916.73
7.2.320.0100.01316.38
7.2.310.0120.00816.38
7.2.300.0030.01316.67
7.2.290.0130.00316.52
7.2.60.0000.01416.59
7.2.00.0060.00619.31
7.1.200.0000.00815.57
7.1.100.0050.00517.95
7.1.70.0100.00317.14
7.1.60.0190.00619.36
7.1.50.0080.00416.89
7.1.00.0070.07322.46
7.0.200.0280.00014.44
7.0.60.0130.07719.87
7.0.50.0100.08017.89
7.0.40.0070.04320.29
7.0.30.0300.05020.07
7.0.20.0300.08320.18
7.0.10.0000.09320.06
7.0.00.0100.08320.22
5.6.280.0030.03021.07
5.6.210.0070.08020.65
5.6.200.0000.04318.18
5.6.190.0000.05320.56
5.6.180.0530.06720.28
5.6.170.0300.04020.52
5.6.160.0100.08320.57
5.6.150.0030.08018.22
5.6.140.0030.04718.14
5.6.130.0070.07718.24
5.6.120.0070.05720.99
5.6.110.0070.03720.99
5.6.100.0070.08321.04
5.6.90.0000.04321.00
5.6.80.0130.04020.39
5.5.350.2370.05320.29
5.5.340.0070.07718.08
5.5.330.0030.08020.39
5.5.320.0030.09020.27
5.5.310.0230.04020.34
5.5.300.0130.07017.98
5.5.290.0030.08717.95
5.5.280.0070.08020.87
5.5.270.0030.08020.86
5.5.260.0100.07020.76
5.5.250.0100.07020.69
5.5.240.0370.05320.26

preferences:
60.07 ms | 400 KiB | 5 Q