3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function bar(integer $pint) { echo $pint; } } $test = new Test; $test->bar(11);

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.0080.01516.50
8.3.50.0280.00821.95
8.3.40.0120.00418.79
8.3.30.0140.00318.67
8.3.20.0040.01518.64
8.3.10.0070.00021.86
8.3.00.0000.00823.71
8.2.180.0090.00618.47
8.2.170.0120.00622.96
8.2.160.0060.00822.13
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0050.00319.70
8.2.120.0080.00026.35
8.2.110.0090.00020.52
8.2.100.0060.00617.55
8.2.90.0000.00819.09
8.2.80.0000.00817.97
8.2.70.0000.00817.63
8.2.60.0000.00817.93
8.2.50.0030.00618.10
8.2.40.0030.00520.48
8.2.30.0000.00719.09
8.2.20.0020.00517.88
8.2.10.0000.00717.86
8.2.00.0030.00517.54
8.1.280.0070.01425.92
8.1.270.0080.00022.19
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0060.00323.83
8.1.230.0070.00417.45
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00717.11
8.1.190.0060.00617.23
8.1.180.0070.00018.10
8.1.170.0000.00718.50
8.1.160.0040.00423.79
8.1.150.0040.00420.16
8.1.140.0000.00719.44
8.1.130.0030.00317.69
8.1.120.0000.00717.38
8.1.110.0040.00417.40
8.1.100.0070.00017.37
8.1.90.0000.00717.37
8.1.80.0050.00217.40
8.1.70.0000.00717.37
8.1.60.0000.00717.59
8.1.50.0030.00517.41
8.1.40.0030.00517.54
8.1.30.0040.00417.66
8.1.20.0040.00417.58
8.1.10.0080.00017.47
8.1.00.0000.00817.55
8.0.300.0030.00618.77
8.0.290.0020.00516.63
8.0.280.0030.00318.29
8.0.270.0030.00617.20
8.0.260.0070.00017.10
8.0.250.0060.00017.01
8.0.240.0070.00016.89
8.0.230.0030.00316.94
8.0.220.0000.00716.86
8.0.210.0000.00716.79
8.0.200.0000.00716.96
8.0.190.0000.00816.94
8.0.180.0070.00016.92
8.0.170.0000.00716.84
8.0.160.0000.00816.81
8.0.150.0070.00016.89
8.0.140.0040.00416.84
8.0.130.0030.00313.27
8.0.120.0000.00816.80
8.0.110.0040.00416.81
8.0.100.0030.00616.85
8.0.90.0000.00716.83
8.0.80.0060.00916.91
8.0.70.0070.00016.76
8.0.60.0040.00416.92
8.0.50.0040.00416.92
8.0.30.0090.01017.22
8.0.20.0100.00917.40
8.0.10.0040.00416.88
8.0.00.0080.01516.91
7.4.330.0050.00015.55
7.4.320.0030.00316.32
7.4.300.0000.00616.49
7.4.290.0030.00616.50
7.4.280.0070.00016.54
7.4.270.0050.00216.57
7.4.260.0110.00016.57
7.4.250.0040.00416.36
7.4.240.0070.00016.51
7.4.230.0050.00316.57
7.4.220.0060.01116.46
7.4.210.0110.00316.51
7.4.200.0000.00716.32
7.4.160.0080.01316.46
7.4.150.0190.00617.40
7.4.140.0090.00917.86
7.4.130.0070.01016.54
7.4.120.0050.01216.44
7.4.110.0110.00716.43
7.4.100.0100.01316.56
7.4.90.0200.00716.60
7.4.80.0150.00619.39
7.4.70.0060.01216.46
7.4.60.0080.00816.46
7.4.50.0120.00316.55
7.4.40.0130.00316.41
7.4.30.0140.00816.38
7.4.00.0120.00315.07
7.3.330.0000.00713.29
7.3.320.0000.00513.27
7.3.310.0030.00316.42
7.3.300.0070.00016.42
7.3.290.0100.00616.34
7.3.280.0050.01416.35
7.3.270.0030.01417.40
7.3.260.0100.00816.56
7.3.250.0120.01016.55
7.3.240.0130.00616.33
7.3.230.0070.01016.52
7.3.210.0080.00816.30
7.3.200.0060.00916.37
7.3.190.0040.01216.61
7.3.180.0090.00616.44
7.3.170.0070.01416.32
7.3.160.0080.00816.41
7.2.330.0100.00716.42
7.2.320.0130.00316.57
7.2.310.0110.01116.73
7.2.300.0140.00416.59
7.2.290.0090.00616.75
7.2.80.0040.00716.44
7.2.60.0000.01016.82
7.2.00.0040.00919.13
7.1.200.0040.00815.64
7.1.100.0030.00917.93
7.1.70.0040.00417.16
7.1.60.0080.00417.09
7.1.50.0070.00716.92
7.1.40.0110.00016.92
7.1.30.0040.00816.92
7.1.20.0060.00916.92
7.1.10.0030.00616.92
7.1.00.0080.00316.92
7.0.200.0030.00916.92
7.0.190.0030.01016.92
7.0.180.0040.00416.92
7.0.170.0000.00716.92
7.0.160.0000.00716.92
7.0.150.0040.00416.92
7.0.140.0050.00516.92
7.0.130.0110.00016.92
7.0.120.0100.00016.92
7.0.110.0000.01016.92
7.0.100.0030.00616.92
7.0.90.0000.00816.92
7.0.80.0040.00416.92
7.0.70.0000.00716.92
7.0.60.0070.01016.92
7.0.50.0000.01016.92
7.0.40.0000.01616.92
7.0.30.0000.01316.92
7.0.20.0030.00616.92
7.0.10.0040.01116.92
7.0.00.0030.00616.92
5.6.300.0030.04520.75
5.6.290.0070.05020.95
5.6.280.0060.04220.98
5.6.270.0000.04720.88
5.6.260.0070.08120.98
5.6.250.0170.03820.91
5.6.240.0100.05520.98
5.6.230.0100.04120.86
5.6.220.0030.04420.87
5.6.210.0130.05721.06
5.6.200.0030.08120.99
5.6.190.0030.04221.04
5.6.180.0000.06420.83
5.6.170.0000.07321.03
5.6.160.0060.05220.87
5.6.150.0100.07620.82
5.6.140.0070.03920.93
5.6.130.0070.05320.98
5.6.120.0000.05420.73
5.6.110.0030.04220.86
5.6.100.0230.04321.02
5.6.90.0070.04020.81
5.6.80.0060.04520.39
5.6.70.0000.04520.08
5.6.60.0030.04220.32
5.6.50.0070.06120.21
5.6.40.0000.04220.39
5.6.30.0070.04920.20
5.6.20.0070.03720.10
5.6.10.0030.04320.07
5.6.00.0030.04120.40

preferences:
57.57 ms | 401 KiB | 5 Q