3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function test2(string $test, int $test2) { print_r($test); print_r($test2); } } $test = new Test(); $test->test2('test', 1);

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.0140.00018.18
8.3.60.0070.01116.63
8.3.50.0150.00622.05
8.3.40.0030.01718.55
8.3.30.0090.00918.72
8.3.20.0040.00420.14
8.3.10.0040.00423.34
8.3.00.0000.00819.13
8.2.180.0090.01218.23
8.2.170.0120.00622.96
8.2.160.0070.00720.47
8.2.150.0050.00325.66
8.2.140.0110.00724.66
8.2.130.0050.00319.23
8.2.120.0070.00026.35
8.2.110.0070.00320.52
8.2.100.0090.00317.93
8.2.90.0000.00919.05
8.2.80.0040.00417.97
8.2.70.0000.00817.50
8.2.60.0050.00317.91
8.2.50.0080.00018.07
8.2.40.0040.00419.29
8.2.30.0000.00720.54
8.2.20.0030.00617.63
8.2.10.0000.00717.98
8.2.00.0040.00418.05
8.1.280.0070.00725.92
8.1.270.0040.00823.91
8.1.260.0040.00428.09
8.1.250.0050.00328.09
8.1.240.0090.00024.00
8.1.230.0000.01119.44
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0060.00317.10
8.1.190.0080.00017.22
8.1.180.0040.00418.10
8.1.170.0000.00718.82
8.1.160.0070.00021.86
8.1.150.0000.00718.73
8.1.140.0030.00519.36
8.1.130.0030.00317.68
8.1.120.0000.00717.39
8.1.110.0040.00417.39
8.1.100.0040.00417.43
8.1.90.0000.00717.43
8.1.80.0030.00517.40
8.1.70.0050.00217.33
8.1.60.0000.00717.54
8.1.50.0000.00917.40
8.1.40.0000.00817.52
8.1.30.0030.00617.70
8.1.20.0000.00717.51
8.1.10.0060.00317.51
8.1.00.0000.00817.45
8.0.300.0050.00218.77
8.0.290.0000.00716.63
8.0.280.0040.00418.38
8.0.270.0040.00417.19
8.0.260.0030.00317.20
8.0.250.0070.00016.92
8.0.240.0000.00716.91
8.0.230.0000.00716.92
8.0.220.0040.00416.71
8.0.210.0040.00416.78
8.0.200.0040.00416.88
8.0.190.0050.00316.76
8.0.180.0030.00516.69
8.0.170.0040.00416.84
8.0.160.0040.00416.90
8.0.150.0030.00316.70
8.0.140.0000.00716.85
8.0.130.0030.00313.32
8.0.120.0040.00416.81
8.0.110.0050.00216.85
8.0.100.0020.00516.65
8.0.90.0030.00616.84
8.0.80.0090.01216.88
8.0.70.0000.00716.89
8.0.60.0040.00416.83
8.0.50.0000.00816.89
8.0.30.0100.00916.85
8.0.20.0130.00717.40
8.0.10.0040.00416.89
8.0.00.0090.00816.67
7.4.330.0030.00316.69
7.4.320.0030.00316.55
7.4.300.0000.00616.64
7.4.290.0000.00716.50
7.4.280.0000.00716.64
7.4.270.0030.00316.54
7.4.260.0040.00716.39
7.4.250.0000.00816.50
7.4.240.0050.00216.52
7.4.230.0070.00016.68
7.4.220.0090.01016.70
7.4.210.0090.00916.51
7.4.200.0040.00416.53
7.4.160.0140.00316.52
7.4.150.0100.00717.40
7.4.140.0150.00417.86
7.4.130.0110.01016.41
7.4.120.0120.00816.56
7.4.110.0140.00416.61
7.4.100.0120.00616.45
7.4.90.0100.00916.26
7.4.80.0120.00919.39
7.4.70.0030.01316.23
7.4.60.0030.01416.68
7.4.50.0130.00316.43
7.4.40.0120.00916.54
7.4.30.0100.00716.52
7.4.00.0060.00914.65
7.3.330.0050.00013.06
7.3.320.0050.00013.11
7.3.310.0000.00716.19
7.3.300.0030.00316.24
7.3.290.0070.00016.21
7.3.280.0060.01316.28
7.3.270.0170.00017.40
7.3.260.0180.00616.25
7.3.250.0120.00516.27
7.3.240.0070.01316.30
7.3.230.0120.01016.39
7.3.210.0170.00316.11
7.3.200.0070.01016.53
7.3.190.0060.01016.38
7.3.180.0030.01216.51
7.3.170.0070.01016.27
7.3.160.0030.01316.25
7.2.330.0160.00716.31
7.2.320.0100.01316.61
7.2.310.0040.01316.57
7.2.300.0090.00916.64
7.2.290.0060.01216.38
7.2.60.0100.00716.98
7.2.00.0080.00419.41
7.1.200.0070.00715.82
7.1.100.0070.01017.64
7.1.70.0030.01017.12
7.1.60.0170.00719.48
7.1.50.0100.01316.96
7.1.00.0130.06722.31
7.0.200.0340.00714.57
7.0.60.0030.06019.96
7.0.50.0030.04017.83
7.0.40.0100.07020.40
7.0.30.0270.03720.12
7.0.20.0230.07020.41
7.0.10.0130.04720.20
7.0.00.0100.08320.27
5.6.280.0030.06020.82
5.6.210.0130.06720.46
5.6.200.0100.03718.23
5.6.190.0130.07720.64
5.6.180.0200.04020.58
5.6.170.0070.05020.46
5.6.160.0000.06020.71
5.6.150.0100.07718.18
5.6.140.0000.05318.21
5.6.130.0100.07718.25
5.6.120.0070.07321.00
5.6.110.0100.08021.12
5.6.100.0030.04020.98
5.6.90.0170.06320.97
5.6.80.0030.08320.38
5.5.350.0400.06720.43
5.5.340.0030.04018.08
5.5.330.0030.04020.13
5.5.320.0030.05320.23
5.5.310.0200.07720.26
5.5.300.0170.07318.02
5.5.290.0100.07717.95
5.5.280.0030.05020.90
5.5.270.0030.08720.87
5.5.260.0000.04320.79
5.5.250.0100.07020.49
5.5.240.0230.07720.19

preferences:
87.39 ms | 401 KiB | 5 Q