3v4l.org

run code in 300+ PHP versions simultaneously
<?php function testNG($tng = '') { static $testNG = ''; return $testNG .= $tng; } testNG("hello!!"); testNG(" world!!"); testNG(" etc."); ?> <h2><?= testNG(); ?></h2>

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.0130.00718.43
8.3.120.0060.00320.73
8.3.110.0080.00016.79
8.3.100.0060.00316.52
8.3.90.0080.00026.77
8.3.80.0060.00316.50
8.3.70.0090.00618.56
8.3.60.0030.01318.43
8.3.50.0080.00917.36
8.3.40.0040.01118.75
8.3.30.0150.00018.58
8.3.20.0040.00418.89
8.3.10.0050.00323.67
8.3.00.0000.00823.53
8.2.250.0130.00616.71
8.2.240.0100.00016.47
8.2.230.0060.00320.94
8.2.220.0080.00024.06
8.2.210.0040.00426.77
8.2.200.0060.00316.38
8.2.190.0120.00616.58
8.2.180.0100.00716.38
8.2.170.0110.00422.96
8.2.160.0080.00618.96
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00020.26
8.2.120.0080.00026.35
8.2.110.0030.00621.12
8.2.100.0040.00817.59
8.2.90.0060.00319.38
8.2.80.0030.00717.97
8.2.70.0000.00818.05
8.2.60.0060.00317.92
8.2.50.0060.00318.10
8.2.40.0000.00819.42
8.2.30.0000.00719.28
8.2.20.0070.00317.92
8.2.10.0000.00719.43
8.2.00.0100.00019.52
8.1.300.0030.00616.02
8.1.290.0030.00630.84
8.1.280.0120.00325.92
8.1.270.0060.00322.02
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0090.00022.02
8.1.230.0060.00620.88
8.1.220.0040.00417.74
8.1.210.0080.00019.00
8.1.200.0050.00517.35
8.1.190.0050.00317.22
8.1.180.0040.00418.10
8.1.170.0000.00918.89
8.1.160.0040.00418.94
8.1.150.0000.00818.98
8.1.140.0060.00317.45
8.1.130.0080.00018.84
8.1.120.0050.00317.47
8.1.110.0030.00617.43
8.1.100.0040.00417.25
8.1.90.0030.00617.40
8.1.80.0030.00417.42
8.1.70.0050.00217.42
8.1.60.0060.00617.58
8.1.50.0000.00917.53
8.1.40.0030.00617.56
8.1.30.0040.00417.64
8.1.20.0040.00417.64
8.1.10.0000.00817.51
8.1.00.0040.00417.45
8.0.300.0040.00419.97
8.0.290.0040.00416.63
8.0.280.0040.00418.44
8.0.270.0030.00316.80
8.0.260.0070.00017.27
8.0.250.0030.00316.84
8.0.240.0000.01016.94
8.0.230.0040.00416.94
8.0.220.0000.00716.88
8.0.210.0040.00416.77
8.0.200.0000.00716.87
8.0.190.0080.00016.85
8.0.180.0000.00816.92
8.0.170.0030.00616.90
8.0.160.0040.00416.98
8.0.150.0000.01016.76
8.0.140.0000.00716.85
8.0.130.0000.00613.28
8.0.120.0050.00216.77
8.0.110.0040.00416.76
8.0.100.0040.00416.89
8.0.90.0070.00016.99
8.0.80.0090.00716.85
8.0.70.0040.00516.93
8.0.60.0030.00516.82
8.0.50.0070.00016.88
8.0.30.0100.00617.01
8.0.20.0090.01217.40
8.0.10.0040.00416.96
8.0.00.0130.00516.94
7.4.330.0050.00215.55
7.4.320.0060.00016.42
7.4.300.0000.00616.63
7.4.290.0070.00016.58
7.4.280.0030.00316.58
7.4.270.0000.00716.59
7.4.260.0070.00016.50
7.4.250.0030.00316.55
7.4.240.0050.00316.45
7.4.230.0000.00716.61
7.4.220.0040.00416.56
7.4.210.0070.00716.48
7.4.200.0030.00316.37
7.4.160.0090.01116.54
7.4.140.0100.01017.86
7.4.130.0170.00016.61
7.4.120.0110.00816.39
7.4.110.0110.01016.46
7.4.100.0090.00916.39
7.4.90.0060.01716.40
7.4.80.0090.00919.39
7.4.70.0120.00416.40
7.4.60.0000.01516.39
7.4.50.0070.01016.57
7.4.40.0070.01016.38
7.4.00.0090.00615.02
7.3.330.0000.00513.22
7.3.320.0060.00013.17
7.3.310.0030.00316.35
7.3.300.0000.00716.34
7.3.290.0000.00716.25
7.3.280.0110.00516.26
7.3.260.0100.00916.39
7.3.240.0090.01016.58
7.3.230.0090.00916.52
7.3.210.0030.01316.23
7.3.200.0180.00316.64
7.3.190.0120.00916.59
7.3.180.0130.00316.38
7.3.170.0130.00416.45
7.3.160.0090.00916.28
7.2.330.0090.00916.33
7.2.320.0150.00916.63
7.2.310.0080.00816.55
7.2.300.0100.00716.57
7.2.290.0030.01916.31
7.2.80.0340.01014.55
7.2.70.0200.01015.17
7.2.60.0280.00414.94
7.2.50.0190.01314.73
7.2.40.0260.00614.95
7.2.30.0330.01315.07
7.2.20.0220.01214.54
7.2.10.0280.00414.84
7.2.00.0500.01314.81
7.1.200.0040.00815.42
7.1.190.0250.00713.53
7.1.180.0220.00913.60
7.1.170.0330.00613.79
7.1.160.0260.00713.55
7.1.150.0270.00313.97
7.1.140.0260.00913.76
7.1.130.0220.01313.46
7.1.120.0290.00013.95
7.1.110.0160.01313.80
7.1.100.0290.01013.99
7.1.90.0410.00613.52
7.1.80.0330.01313.87
7.1.70.0260.00314.07
7.1.60.0520.02031.78
7.1.50.0520.01331.83
7.1.40.0470.01031.96
7.1.30.0590.01031.83
7.1.20.0530.02031.65
7.1.10.0430.01013.91
7.1.00.0300.01713.55

preferences:
30.65 ms | 403 KiB | 5 Q