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.0190.00018.31
8.3.50.0140.00016.32
8.3.40.0080.00818.67
8.3.30.0110.00418.54
8.3.20.0040.00421.73
8.3.10.0080.00023.53
8.3.00.0040.00419.69
8.2.180.0070.01416.65
8.2.170.0170.00322.96
8.2.160.0070.00722.20
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0000.00820.80
8.2.120.0040.00426.35
8.2.110.0070.00322.25
8.2.100.0060.00617.78
8.2.90.0040.00417.91
8.2.80.0030.00518.03
8.2.70.0000.00817.92
8.2.60.0030.00617.38
8.2.50.0070.00018.10
8.2.40.0040.00420.48
8.2.30.0040.00419.27
8.2.20.0040.00417.88
8.2.10.0040.00417.88
8.2.00.0000.00718.04
8.1.280.0150.00625.92
8.1.270.0040.00421.90
8.1.260.0040.00426.35
8.1.250.0090.00028.09
8.1.240.0090.00022.32
8.1.230.0040.00720.89
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0030.00617.36
8.1.190.0000.00917.22
8.1.180.0050.00318.10
8.1.170.0050.00318.61
8.1.160.0050.00318.82
8.1.150.0070.00020.14
8.1.140.0050.00317.75
8.1.130.0060.00318.91
8.1.120.0060.00317.41
8.1.110.0000.00817.36
8.1.100.0060.00317.39
8.1.90.0080.00017.27
8.1.80.0040.00417.38
8.1.70.0000.00717.30
8.1.60.0000.00817.47
8.1.50.0000.00817.49
8.1.40.0000.00817.47
8.1.30.0000.00817.63
8.1.20.0040.00417.54
8.1.10.0050.00317.41
8.1.00.0030.00617.45
8.0.300.0040.00420.00
8.0.290.0040.00416.61
8.0.280.0070.00018.40
8.0.270.0070.00317.16
8.0.260.0000.00716.70
8.0.250.0000.00716.89
8.0.240.0070.00016.74
8.0.230.0110.00016.82
8.0.220.0080.00016.84
8.0.210.0000.00716.70
8.0.200.0070.00016.75
8.0.190.0100.00016.67
8.0.180.0040.00416.75
8.0.170.0040.00416.81
8.0.160.0030.00516.85
8.0.150.0030.00316.83
8.0.140.0000.00716.80
8.0.130.0030.00313.20
8.0.120.0040.00416.77
8.0.110.0030.00416.84
8.0.100.0000.00716.79
8.0.90.0000.00716.63
8.0.80.0120.00416.71
8.0.70.0080.00016.66
8.0.60.0000.00716.79
8.0.50.0040.00416.64
8.0.30.0110.00917.16
8.0.20.0110.01217.40
8.0.10.0050.00316.85
8.0.00.0080.01316.54
7.4.330.0020.00215.55
7.4.320.0000.00616.47
7.4.300.0030.00316.44
7.4.290.0000.00716.58
7.4.280.0030.00516.52
7.4.270.0040.00416.41
7.4.260.0000.00716.44
7.4.250.0050.00216.42
7.4.240.0050.00216.49
7.4.230.0000.00716.54
7.4.220.0030.00616.32
7.4.210.0070.01416.39
7.4.200.0000.00816.38
7.4.160.0110.00716.43
7.4.140.0110.00717.86
7.4.130.0150.00916.57
7.4.120.0100.01016.42
7.4.110.0060.01516.39
7.4.100.0040.01316.66
7.4.90.0070.01016.50
7.4.80.0140.00519.39
7.4.70.0100.00716.55
7.4.60.0120.00316.47
7.4.50.0030.01016.20
7.4.40.0110.00616.69
7.4.00.0090.00614.79
7.3.330.0000.00513.13
7.3.320.0030.00313.30
7.3.310.0070.00016.16
7.3.300.0030.00316.21
7.3.290.0080.01216.29
7.3.280.0080.00916.28
7.3.260.0140.00716.43
7.3.240.0120.00616.30
7.3.230.0060.01316.43
7.3.210.0040.01216.55
7.3.200.0090.01316.35
7.3.190.0060.01016.35
7.3.180.0030.01616.49
7.3.170.0060.01516.43
7.3.160.0100.00616.37
7.2.330.0120.00616.41
7.2.320.0140.00616.54
7.2.310.0090.00616.34
7.2.300.0100.00616.67
7.2.290.0040.01216.48
7.2.60.0040.00816.66
7.2.20.0110.01117.74
7.2.10.0130.01417.82
7.2.00.0130.01817.75
7.1.200.0050.00515.57
7.1.140.0130.00916.81
7.1.130.0110.01316.78
7.1.120.0090.01616.43
7.1.110.0120.00815.82
7.1.100.0140.01116.11
7.1.90.0090.01016.28
7.1.80.0090.01116.07
7.1.70.0080.00915.12
7.1.60.0300.01533.07
7.1.50.0350.01832.84
7.1.40.0300.01932.50
7.1.30.0320.01732.60
7.1.20.0280.01132.80
7.1.10.0090.01014.53
7.1.00.0110.00814.64

preferences:
45.5 ms | 401 KiB | 5 Q