3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test() { echo "this is a test function\n"; } function testParam($param = "test with param") { echo "this is a test function.. " . $param . "\n"; } test(); testParam(); testParam('Good test');

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.0110.00718.18
8.3.50.0110.00316.18
8.3.40.0130.00318.67
8.3.30.0070.00718.71
8.3.20.0070.00021.73
8.3.10.0040.00423.66
8.3.00.0050.00319.68
8.2.180.0070.01416.33
8.2.170.0110.01122.96
8.2.160.0140.00022.04
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0060.00326.16
8.2.120.0080.00019.76
8.2.110.0000.00919.21
8.2.100.0090.00319.82
8.2.90.0080.00019.09
8.2.80.0050.00517.97
8.2.70.0040.00417.50
8.2.60.0000.00817.80
8.2.50.0080.00018.07
8.2.40.0000.00918.04
8.2.30.0000.00717.88
8.2.20.0080.00017.88
8.2.10.0040.00417.89
8.2.00.0000.00718.00
8.1.280.0110.01125.92
8.1.270.0000.00722.14
8.1.260.0070.00026.35
8.1.250.0050.00228.09
8.1.240.0040.00722.62
8.1.230.0090.00322.16
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0090.00017.25
8.1.190.0000.01017.00
8.1.180.0030.00518.10
8.1.170.0040.00418.57
8.1.160.0040.00418.89
8.1.150.0070.00020.17
8.1.140.0040.00417.64
8.1.130.0070.00318.95
8.1.120.0000.00817.26
8.1.110.0000.00717.39
8.1.100.0030.00717.40
8.1.90.0040.00417.41
8.1.80.0050.00217.27
8.1.70.0030.00317.42
8.1.60.0000.00817.54
8.1.50.0040.00417.50
8.1.40.0040.00417.41
8.1.30.0030.00517.63
8.1.20.0040.00417.60
8.1.10.0040.00417.46
8.1.00.0090.00317.35
8.0.300.0050.00318.77
8.0.290.0040.00416.75
8.0.280.0040.00418.33
8.0.270.0040.00417.11
8.0.260.0060.00018.34
8.0.250.0060.00016.81
8.0.240.0030.00316.86
8.0.230.0040.00416.87
8.0.220.0040.00216.75
8.0.210.0030.00316.80
8.0.200.0000.00616.89
8.0.190.0060.00316.91
8.0.180.0000.00816.94
8.0.170.0060.00316.73
8.0.160.0030.00316.93
8.0.150.0040.00416.69
8.0.140.0030.00316.79
8.0.130.0000.00613.21
8.0.120.0070.00016.70
8.0.110.0040.00416.76
8.0.100.0040.00416.95
8.0.90.0020.00516.90
8.0.80.0070.00916.86
8.0.70.0040.00416.63
8.0.60.0070.00016.79
8.0.50.0040.00416.57
8.0.30.0070.01017.05
8.0.20.0120.01217.40
8.0.10.0040.00416.68
8.0.00.0080.00816.66
7.4.330.0050.00015.55
7.4.320.0060.00016.49
7.4.300.0030.00316.51
7.4.290.0030.00316.52
7.4.280.0000.00716.55
7.4.270.0030.00316.35
7.4.260.0000.00716.53
7.4.250.0040.00416.43
7.4.240.0040.00416.43
7.4.230.0000.00716.34
7.4.220.0030.00316.46
7.4.210.0030.01716.51
7.4.200.0000.00716.29
7.4.160.0080.00816.40
7.4.140.0120.00717.86
7.4.130.0100.01016.41
7.4.120.0110.00816.43
7.4.110.0160.00616.37
7.4.100.0110.00616.39
7.4.90.0090.00816.44
7.4.80.0120.00919.39
7.4.70.0030.01616.49
7.4.60.0090.00616.47
7.4.50.0030.01016.39
7.4.40.0090.01216.58
7.4.00.0030.01014.98
7.3.330.0000.00713.16
7.3.320.0000.00713.32
7.3.310.0060.00316.32
7.3.300.0000.00716.15
7.3.290.0070.01116.29
7.3.280.0100.00716.29
7.3.260.0140.00416.34
7.3.240.0100.00916.38
7.3.230.0040.01216.44
7.3.210.0060.01016.48
7.3.200.0120.00916.39
7.3.190.0090.00616.31
7.3.180.0060.01316.54
7.3.170.0190.00616.38
7.3.160.0070.01016.55
7.2.330.0080.00816.68
7.2.320.0040.01616.37
7.2.310.0070.01016.43
7.2.300.0040.01216.62
7.2.290.0140.00416.69
7.2.110.0090.00616.50
7.2.60.0110.00516.57
7.2.20.0090.01117.48
7.2.10.0160.01117.52
7.2.00.0140.01517.67
7.1.200.0000.01215.67
7.1.140.0120.01316.89
7.1.130.0110.01516.46
7.1.120.0100.01616.48
7.1.110.0130.01216.21
7.1.100.0740.01315.98
7.1.90.0110.01216.23
7.1.80.0140.01516.25
7.1.70.0120.01215.40
7.1.60.0330.02033.23
7.1.50.0670.01732.84
7.1.40.0320.01932.56
7.1.30.0360.02032.48
7.1.20.0350.01632.54
7.1.10.0100.00914.54
7.1.00.0150.01014.61

preferences:
62.82 ms | 401 KiB | 5 Q