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

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.130.0040.00416.55
8.3.120.0060.00320.92
8.3.110.0060.00316.73
8.3.100.0100.00018.16
8.3.90.0050.00316.50
8.3.80.0050.00518.43
8.3.70.0040.01216.47
8.3.60.0070.01418.55
8.3.50.0130.00621.99
8.3.40.0110.00418.54
8.3.30.0110.00418.45
8.3.20.0050.00320.34
8.3.10.0040.00423.57
8.3.00.0030.00619.13
8.2.250.0080.00018.46
8.2.240.0120.00616.36
8.2.230.0080.00020.94
8.2.220.0090.00024.06
8.2.210.0140.00426.77
8.2.200.0060.00316.50
8.2.190.0110.00716.75
8.2.180.0080.00818.42
8.2.170.0030.01422.96
8.2.160.0040.01220.38
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00417.50
8.2.120.0040.00426.35
8.2.110.0060.00321.18
8.2.100.0060.00617.59
8.2.90.0040.00417.72
8.2.80.0000.00817.97
8.2.70.0060.00317.80
8.2.60.0000.00817.50
8.2.50.0050.00318.10
8.2.40.0000.00920.54
8.2.30.0000.00822.46
8.2.20.0100.00017.65
8.2.10.0090.00018.04
8.2.00.0040.00417.94
8.1.300.0040.00416.78
8.1.290.0030.00618.88
8.1.280.0100.00725.92
8.1.270.0100.00023.99
8.1.260.0060.00326.35
8.1.250.0000.00828.09
8.1.240.0030.00622.46
8.1.230.0110.00020.91
8.1.220.0050.00517.74
8.1.210.0030.00518.80
8.1.200.0030.00617.13
8.1.190.0060.00317.22
8.1.180.0040.00418.10
8.1.170.0100.00018.50
8.1.160.0040.00418.81
8.1.150.0040.00420.20
8.1.140.0080.00019.46
8.1.130.0000.00717.68
8.1.120.0040.00417.42
8.1.110.0050.00317.44
8.1.100.0040.00417.30
8.1.90.0080.00017.27
8.1.80.0040.00417.28
8.1.70.0040.00417.34
8.1.60.0040.00417.59
8.1.50.0030.00517.38
8.1.40.0080.00017.52
8.1.30.0000.00817.55
8.1.20.0070.00017.57
8.1.10.0040.00417.49
8.1.00.0000.00817.38
8.0.300.0070.00020.11
8.0.290.0040.00416.63
8.0.280.0070.00018.37
8.0.270.0030.00317.18
8.0.260.0040.00417.10
8.0.250.0070.00016.85
8.0.240.0030.00316.86
8.0.230.0000.00716.78
8.0.220.0000.01016.78
8.0.210.0040.00416.82
8.0.200.0030.00516.94
8.0.190.0000.00716.89
8.0.180.0000.00716.91
8.0.170.0060.00316.87
8.0.160.0000.00716.89
8.0.150.0070.00016.80
8.0.140.0030.00316.67
8.0.130.0060.00313.27
8.0.120.0050.00516.75
8.0.110.0040.00416.85
8.0.100.0000.00716.86
8.0.90.0000.00716.94
8.0.80.0120.00316.81
8.0.70.0070.00016.93
8.0.60.0000.00716.77
8.0.50.0040.00416.81
8.0.30.0070.01117.16
8.0.20.0060.01417.40
8.0.10.0000.00716.83
8.0.00.0080.00816.71
7.4.330.0020.00216.76
7.4.320.0030.00316.49
7.4.300.0030.00316.48
7.4.290.0000.00716.56
7.4.280.0030.00516.44
7.4.270.0030.00316.58
7.4.260.0000.00716.52
7.4.250.0040.00416.41
7.4.240.0050.00216.40
7.4.230.0000.00716.59
7.4.220.0150.00416.62
7.4.210.0030.01216.61
7.4.200.0070.00016.69
7.4.160.0130.00616.48
7.4.150.0100.00917.40
7.4.140.0090.00917.86
7.4.130.0110.00616.50
7.4.120.0070.00916.33
7.4.110.0090.00916.39
7.4.100.0170.00616.33
7.4.90.0090.00916.38
7.4.80.0110.00719.39
7.4.70.0090.01216.43
7.4.60.0070.01016.48
7.4.50.0030.01316.48
7.4.40.0200.00416.59
7.4.30.0060.01816.56
7.4.00.0080.00814.97
7.3.330.0000.00613.31
7.3.320.0000.00513.19
7.3.310.0080.00016.23
7.3.300.0070.00016.28
7.3.290.0080.00616.19
7.3.280.0110.00416.23
7.3.270.0080.00817.40
7.3.260.0100.00716.47
7.3.250.0070.01216.31
7.3.240.0130.00516.35
7.3.230.0110.00616.39
7.3.210.0100.00716.18
7.3.200.0170.00316.34
7.3.190.0060.00916.48
7.3.180.0060.01016.55
7.3.170.0080.01516.43
7.3.160.0120.00316.19
7.3.120.0060.01314.83
7.3.110.0070.01114.72
7.3.100.0090.00814.54
7.3.90.0060.01214.95
7.3.80.0020.01414.57
7.3.70.0060.00414.75
7.3.60.0040.00914.71
7.3.50.0060.00914.57
7.3.40.0040.01014.57
7.3.30.0060.00714.50
7.3.20.0080.00516.41
7.3.10.0030.01016.55
7.3.00.0050.00516.53
7.2.330.0110.00716.65
7.2.320.0080.01416.59
7.2.310.0100.00716.45
7.2.300.0070.01016.72
7.2.290.0000.01716.27
7.2.250.0120.00514.86
7.2.240.0080.00914.99
7.2.230.0050.01014.85
7.2.220.0090.00714.97
7.2.210.0050.00814.92
7.2.200.0080.00614.96
7.2.190.0100.00515.00
7.2.180.0000.00915.02
7.2.170.0080.00514.90
7.2.80.0030.01016.54
7.2.60.0090.00616.96
7.2.50.0120.00016.73
7.1.330.0090.00515.76
7.1.320.0070.00515.71
7.1.310.0080.00615.56
7.1.300.0060.00715.64
7.1.290.0090.00415.75
7.1.280.0050.00815.74
7.1.270.0120.00315.58
7.1.260.0060.00715.61
7.1.200.0110.00715.43
7.1.70.0040.00416.80
7.1.60.0100.01319.12
7.1.50.0100.01416.90
7.1.00.0000.07722.57
7.0.200.0060.00316.73
7.0.100.0100.06719.99
7.0.90.0070.08019.91
7.0.80.0500.07719.96
7.0.70.0400.05020.14
7.0.60.0000.07719.87
7.0.50.0500.07720.32
7.0.40.0100.08020.11
7.0.30.0070.04720.08
7.0.20.0130.07320.05
7.0.10.0070.06020.18
7.0.00.0070.05320.03
5.6.280.0030.03321.03
5.6.250.0070.07020.74
5.6.240.0070.07020.64
5.6.230.0030.08720.72
5.6.220.0030.07320.53
5.6.210.0100.07720.47
5.6.200.0000.08721.09
5.6.190.0000.08321.02
5.6.180.0070.06320.97
5.6.170.0130.05321.07
5.6.160.0030.08321.04
5.6.150.0100.08020.96
5.6.140.0100.08021.14
5.6.130.0000.07321.05
5.6.120.0100.05721.04
5.6.110.0130.07721.07
5.6.100.0230.06321.04
5.6.90.0000.09021.09
5.6.80.0030.07720.34
5.6.70.0130.07720.43
5.6.60.0130.07020.39
5.6.50.0170.07020.47
5.6.40.0130.07320.38
5.6.30.0030.08020.43
5.6.20.0170.06020.38
5.6.10.0130.07320.33
5.6.00.0130.05720.48
5.5.380.0000.05020.55
5.5.370.0100.08320.45
5.5.360.0100.07720.44
5.5.350.0070.08020.37
5.5.340.0030.06020.93
5.5.330.0100.07720.88
5.5.320.0070.08720.79
5.5.310.0030.07020.93
5.5.300.0030.09020.84
5.5.290.0130.06720.91
5.5.280.0170.06320.73
5.5.270.0030.08720.86
5.5.260.0070.08020.78
5.5.250.0200.06720.61
5.5.240.0100.07020.26
5.5.230.0130.07320.30
5.5.220.0070.07320.27
5.5.210.0130.07720.24
5.5.200.0170.07320.09
5.5.190.0030.05720.13
5.5.180.0200.07020.24
5.5.160.0130.04020.13
5.5.150.0070.08020.21
5.5.140.0100.07320.23
5.5.130.0100.06720.11
5.5.120.0200.07020.08
5.5.110.0000.08720.14
5.5.100.0100.07320.12
5.5.90.0170.07020.05
5.5.80.0130.06720.02
5.5.70.0070.06720.11
5.5.60.0070.06720.09
5.5.50.0230.06020.14
5.5.40.0130.07320.00
5.5.30.0270.05320.10
5.5.20.0030.07720.15
5.5.10.0000.08020.04
5.5.00.0000.07320.05

preferences:
68.13 ms | 403 KiB | 5 Q