3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test (... $args) { foreach ($args as $arg) { echo $arg. " "; } } test("testing", "variable");

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.0080.00018.43
8.3.120.0030.00520.68
8.3.110.0030.00516.64
8.3.100.0090.00018.46
8.3.90.0000.00826.77
8.3.80.0090.00016.50
8.3.70.0090.00916.58
8.3.60.0130.00918.56
8.3.50.0100.00317.30
8.3.40.0040.01118.81
8.3.30.0120.00318.55
8.3.20.0080.00021.80
8.3.10.0040.00423.53
8.3.00.0040.00423.51
8.2.250.0080.00016.63
8.2.240.0040.01119.00
8.2.230.0040.00420.94
8.2.220.0030.00624.06
8.2.210.0040.01126.77
8.2.200.0060.00316.50
8.2.190.0140.00716.58
8.2.180.0070.01125.92
8.2.170.0100.01018.97
8.2.160.0040.01122.96
8.2.150.0000.00725.66
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0080.00021.06
8.2.110.0040.00420.34
8.2.100.0040.00817.78
8.2.90.0000.00920.63
8.2.80.0000.00818.05
8.2.70.0030.00617.80
8.2.60.0000.00718.16
8.2.50.0050.00318.10
8.2.40.0000.00720.42
8.2.30.0040.00420.55
8.2.20.0000.00818.04
8.2.10.0060.00317.99
8.2.00.0040.00417.95
8.1.300.0090.00019.35
8.1.290.0060.00330.84
8.1.280.0090.00625.92
8.1.270.0050.00223.99
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00318.63
8.1.230.0000.01223.98
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0000.00817.23
8.1.190.0060.00317.00
8.1.180.0000.00918.10
8.1.170.0050.00318.31
8.1.160.0040.00418.86
8.1.150.0030.00320.21
8.1.140.0000.00917.63
8.1.130.0000.00718.87
8.1.120.0000.00717.29
8.1.110.0030.00617.28
8.1.100.0050.00317.45
8.1.90.0000.00717.32
8.1.80.0040.00417.43
8.1.70.0040.00417.34
8.1.60.0000.00817.52
8.1.50.0070.00317.45
8.1.40.0060.00317.43
8.1.30.0040.00417.65
8.1.20.0040.00417.54
8.1.10.0040.00417.46
8.1.00.0060.00317.42
8.0.300.0040.00419.60
8.0.290.0080.00016.75
8.0.280.0070.00018.35
8.0.270.0030.00316.81
8.0.260.0030.00316.72
8.0.250.0030.00316.82
8.0.240.0000.01116.84
8.0.230.0070.00316.95
8.0.220.0080.00016.79
8.0.210.0040.00416.78
8.0.200.0040.00416.87
8.0.190.0040.00416.93
8.0.180.0030.00316.94
8.0.170.0040.00416.78
8.0.160.0040.00416.93
8.0.150.0070.00016.79
8.0.140.0070.00016.81
8.0.130.0030.00313.32
8.0.120.0000.00816.74
8.0.110.0040.00416.85
8.0.100.0060.00316.91
8.0.90.0000.00716.98
8.0.80.0000.01516.77
8.0.70.0040.00416.88
8.0.60.0050.00216.88
8.0.50.0000.00716.79
8.0.30.0060.01117.13
8.0.20.0100.00817.40
8.0.10.0000.00716.98
8.0.00.0130.00516.71
7.4.330.0060.00015.55
7.4.320.0030.00316.62
7.4.300.0000.00716.50
7.4.290.0070.00416.52
7.4.280.0030.00616.52
7.4.270.0050.00316.60
7.4.260.0000.00716.47
7.4.250.0050.00316.46
7.4.240.0040.00416.54
7.4.230.0030.00316.61
7.4.220.0030.00616.53
7.4.210.0110.00416.56
7.4.200.0040.00316.67
7.4.160.0120.00716.41
7.4.140.0090.00817.86
7.4.130.0090.00916.32
7.4.120.0110.00616.56
7.4.110.0140.00316.38
7.4.100.0040.01216.61
7.4.90.0090.00916.50
7.4.80.0130.01019.39
7.4.70.0170.01516.30
7.4.60.0080.00816.56
7.4.50.0140.00016.50
7.4.40.0170.00016.61
7.4.00.0060.01014.76
7.3.330.0000.00513.31
7.3.320.0000.00613.26
7.3.310.0000.00716.33
7.3.300.0030.00316.34
7.3.290.0100.00616.26
7.3.280.0040.01716.28
7.3.260.0090.01016.31
7.3.250.0050.01416.49
7.3.240.0160.00216.54
7.3.230.0080.00816.50
7.3.210.0090.00916.34
7.3.200.0130.00616.52
7.3.190.0090.00616.34
7.3.180.0130.00316.56
7.3.170.0060.00916.45
7.3.160.0060.00916.37
7.3.120.0110.00714.70
7.3.110.0030.01314.74
7.3.100.0030.01414.96
7.3.90.0080.00614.76
7.3.80.0030.00914.76
7.3.70.0100.00314.78
7.3.60.0040.00714.96
7.3.50.0130.00014.78
7.3.40.0070.00714.81
7.3.30.0060.01014.88
7.3.20.0090.00316.67
7.3.10.0030.01016.62
7.3.00.0060.01216.54
7.2.330.0190.00316.73
7.2.320.0060.01616.37
7.2.310.0180.00016.71
7.2.300.0090.01416.49
7.2.290.0160.00616.68
7.2.250.0000.01715.12
7.2.240.0080.01114.96
7.2.230.0120.00614.96
7.2.220.0030.01014.77
7.2.210.0000.01414.98
7.2.200.0040.00415.00
7.2.190.0110.00015.06
7.2.180.0030.01214.76
7.2.170.0100.00714.97
7.2.160.0060.00615.10
7.2.150.0100.00316.98
7.2.140.0030.01416.57
7.2.130.0060.01316.83
7.2.120.0070.00416.90
7.2.110.0110.00417.05
7.2.100.0100.00016.93
7.2.90.0060.01216.60
7.2.80.0030.01416.86
7.2.70.0070.00316.98
7.2.60.0040.01216.84
7.2.50.0120.00316.73
7.2.40.0070.00716.91
7.2.30.0080.01317.48
7.2.20.0050.01217.25
7.2.10.0060.01217.15
7.2.00.0070.01117.29
7.1.330.0070.00715.66
7.1.320.0040.00715.35
7.1.310.0030.01015.57
7.1.300.0030.01015.77
7.1.290.0070.00715.78
7.1.280.0070.00715.82
7.1.270.0090.00615.48
7.1.260.0030.01015.57
7.1.250.0040.00715.35
7.1.240.0090.00615.93
7.1.230.0070.00715.77
7.1.220.0080.00815.61
7.1.210.0060.00615.76
7.1.200.0080.00215.71
7.1.190.0090.00615.66
7.1.180.0070.01015.50
7.1.170.0030.01315.61
7.1.160.0030.01015.82
7.1.150.0080.01216.20
7.1.140.0070.01215.94
7.1.130.0720.01016.11
7.1.120.0070.00916.01
7.1.110.0050.01315.67
7.1.100.0080.00915.88
7.1.90.0080.00715.85
7.1.80.0040.01015.83
7.1.70.0030.00915.55
7.1.60.0210.00924.56
7.1.50.0160.01024.20
7.1.40.0140.01123.84
7.1.30.0160.00724.02
7.1.20.0210.00924.12
7.1.10.0050.01015.09
7.1.00.0080.00715.06
7.0.330.0000.00815.15
5.6.400.0030.01014.36
5.6.390.0080.00414.49
5.6.380.0060.00614.14

preferences:
30.54 ms | 403 KiB | 5 Q