3v4l.org

run code in 300+ PHP versions simultaneously
<?php $output = ""; echo showtest(); function showtest() { for ($i=1; $i < 500; $i++) { /* echo "adfadsf"; echo 3+4+5; echo "adfadsf2"; echo 3+4+5+6; echo "adfadsf3"; echo 3+4+5+7; echo "adfadsf4"; echo 3+4+5+8; echo "adfadsf5"; echo 3+4+5+9; */ $output .= "adfadsf"; $output .= 3+4+5; $output .= "adfadsf2"; $output .= 3+4+5+6; $output .= "adfadsf3"; $output .= 3+4+5+7; $output .= "adfadsf4"; $output .= 3+4+5+8; $output .= "adfadsf5"; $output .= 3+4+5+9; } echo $output; return output; }

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.0150.00016.75
8.3.50.0070.01221.99
8.3.40.0040.01119.12
8.3.30.0060.00918.84
8.3.20.0150.00420.34
8.3.10.0000.00823.71
8.3.00.0050.00319.51
8.2.180.0110.01118.54
8.2.170.0060.00922.96
8.2.160.0110.00422.11
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00819.36
8.2.120.0090.00026.35
8.2.110.0100.00022.25
8.2.100.0060.00618.05
8.2.90.0050.00319.21
8.2.80.0080.00317.97
8.2.70.0030.00617.88
8.2.60.0050.00517.92
8.2.50.0080.00018.07
8.2.40.0070.00319.58
8.2.30.0000.00820.77
8.2.20.0030.00617.93
8.2.10.0080.00018.18
8.2.00.0040.00418.18
8.1.280.0110.01125.92
8.1.270.0110.00022.27
8.1.260.0040.00428.09
8.1.250.0000.01428.09
8.1.240.0040.00423.97
8.1.230.0060.00617.68
8.1.220.0000.00817.91
8.1.210.0030.00518.77
8.1.200.0030.00717.48
8.1.190.0000.00817.36
8.1.180.0050.00318.10
8.1.170.0070.00020.22
8.1.160.0000.00722.14
8.1.150.0030.00619.00
8.1.140.0040.00419.61
8.1.130.0070.00017.86
8.1.120.0000.00717.59
8.1.110.0090.00317.57
8.1.100.0050.00217.56
8.1.90.0000.00717.61
8.1.80.0040.00417.48
8.1.70.0000.00817.60
8.1.60.0090.00017.69
8.1.50.0030.00517.62
8.1.40.0000.00817.63
8.1.30.0080.00017.81
8.1.20.0030.00617.76
8.1.10.0050.00317.55
8.1.00.0080.00017.52
8.0.300.0000.00818.77
8.0.290.0060.00316.88
8.0.280.0030.00318.50
8.0.270.0030.00517.38
8.0.260.0040.00417.36
8.0.250.0080.00017.11
8.0.240.0080.00017.16
8.0.230.0040.00417.11
8.0.220.0040.00417.07
8.0.210.0030.00317.08
8.0.200.0070.00017.03
8.0.190.0060.00317.11
8.0.180.0000.00816.98
8.0.170.0040.00417.12
8.0.160.0040.00417.09
8.0.150.0000.00817.09
8.0.140.0000.00716.87
8.0.130.0030.00313.49
8.0.120.0030.00617.12
8.0.110.0000.00717.07
8.0.100.0020.00517.15
8.0.90.0040.00417.17
8.0.80.0120.00317.11
8.0.70.0000.00816.95
8.0.60.0040.00417.07
8.0.50.0040.00416.92
8.0.30.0100.00917.24
8.0.20.0120.01217.40
8.0.10.0050.00317.08
8.0.00.0100.00816.86
7.4.330.0050.00016.81
7.4.320.0000.00716.74
7.4.300.0000.00716.62
7.4.290.0040.00416.62
7.4.280.0000.00816.51
7.4.270.0000.00716.61
7.4.260.0030.00616.50
7.4.250.0030.00616.50
7.4.240.0030.00416.65
7.4.230.0030.00316.71
7.4.220.0110.00716.72
7.4.210.0080.00816.67
7.4.200.0000.00816.73
7.4.160.0080.01416.73
7.4.150.0160.00917.40
7.4.140.0130.00717.86
7.4.130.0090.01216.65
7.4.120.0090.00916.75
7.4.110.0140.00716.59
7.4.100.0100.01416.56
7.4.90.0090.00916.74
7.4.80.0160.00219.39
7.4.70.0060.01216.68
7.4.60.0070.01016.74
7.4.50.0040.00816.84
7.4.40.0150.00316.55
7.4.30.0120.00916.64
7.3.330.0000.00513.29
7.3.320.0030.00313.30
7.3.310.0040.00416.34
7.3.300.0000.00816.50
7.3.290.0080.00816.47
7.3.280.0120.00616.45
7.3.270.0060.01217.40
7.3.260.0110.01316.73
7.3.250.0120.00716.57
7.3.240.0090.00816.47
7.3.230.0060.00916.57
7.3.210.0070.01116.49
7.3.200.0110.00616.34
7.3.190.0100.01016.51
7.3.180.0100.01016.34
7.3.170.0120.00416.79
7.3.160.0060.01116.55
7.2.330.0120.00616.90
7.2.320.0080.01116.88
7.2.310.0030.01216.76
7.2.300.0150.00316.88
7.2.290.0140.00716.89
7.2.110.0040.01116.67
7.2.100.0030.01316.68
7.2.90.0070.00716.65
7.2.80.0070.00716.60
7.2.70.0050.00317.06
7.2.60.0050.00916.81
7.2.50.0070.00716.95
7.2.40.0060.00916.97
7.2.30.0040.01117.02
7.2.20.0100.00716.77
7.2.10.0080.00316.98
7.2.00.0060.01018.10
7.1.230.0030.01015.96
7.1.220.0060.00615.69
7.1.210.0110.00315.63
7.1.200.0060.00715.75
7.1.190.0080.00415.73
7.1.180.0040.00415.73
7.1.170.0030.01015.47
7.1.160.0060.00315.97
7.1.150.0030.01015.87
7.1.140.0030.01215.65
7.1.130.0080.00415.63
7.1.120.0030.00915.72
7.1.110.0030.01315.84
7.1.100.0060.00615.90
7.1.90.0030.01315.96
7.1.80.0030.01315.69
7.1.70.0050.00516.51
7.1.60.0080.00816.46
7.1.50.0140.00616.36
7.1.40.0100.00615.79
7.1.30.0040.01115.78
7.1.20.0030.01315.62
7.1.10.0000.01315.84
7.1.00.0030.04319.24
7.0.310.0030.00615.34
7.0.300.0080.00015.22
7.0.290.0090.00315.05
7.0.280.0060.00315.40
7.0.270.0060.00615.39
7.0.260.0110.00315.39
7.0.250.0080.00015.62
7.0.240.0030.00915.55
7.0.230.0000.00715.49
7.0.220.0000.01515.61
7.0.210.0000.01215.41
7.0.200.0060.00816.12
7.0.190.0000.01215.27
7.0.180.0000.01315.38
7.0.170.0050.00315.36
7.0.160.0000.01215.23
7.0.150.0040.00415.41
7.0.140.0030.01015.16
7.0.130.0030.01015.09
7.0.120.0030.01015.22
7.0.110.0030.00615.45
7.0.100.0070.00415.45
7.0.90.0040.01215.57
7.0.80.0030.00615.54
7.0.70.0060.00315.20
7.0.60.0060.04617.56
7.0.50.0100.04116.67
7.0.40.0110.03716.77
7.0.30.0040.03216.75
7.0.20.0200.04016.75
7.0.10.0060.02916.91
7.0.00.0050.03116.88
5.6.380.0030.01014.32
5.6.370.0000.01814.62
5.6.360.0070.00714.65
5.6.350.0030.01314.69
5.6.340.0100.00714.68
5.6.330.0030.00614.57
5.6.320.0030.01014.47
5.6.310.0080.00314.40
5.6.300.0100.00314.38
5.6.290.0000.01414.35
5.6.280.0060.03817.94
5.6.270.0070.00714.52
5.6.260.0000.01314.53
5.6.250.0110.00614.40
5.6.240.0070.00714.41
5.6.230.0000.01414.42
5.6.220.0060.00614.33
5.6.210.0060.02217.48
5.6.200.0050.04316.29
5.6.190.0050.05017.61
5.6.180.0170.02017.50
5.6.170.0180.03517.45
5.6.160.0120.03017.47
5.6.150.0020.04716.26
5.6.140.0020.04816.25
5.6.130.0060.03616.36
5.6.120.0100.02517.64
5.6.110.0080.03717.52
5.6.100.0050.04017.84
5.6.90.0050.02717.82
5.6.80.0030.04817.25
5.6.70.0070.00714.45
5.6.60.0060.00914.46
5.6.50.0000.01314.24
5.6.40.0030.01014.42
5.6.30.0040.01114.24
5.6.20.0030.00914.58
5.6.10.0060.00614.13
5.6.00.0090.00314.40
5.5.380.0030.00612.79
5.5.370.0040.00412.79
5.5.360.0000.00612.79
5.5.350.1520.02116.62
5.5.340.0070.04015.43
5.5.330.0050.02716.52
5.5.320.0180.04016.58
5.5.310.0120.02616.61
5.5.300.0060.02515.39
5.5.290.0030.02315.43
5.5.280.0030.03316.83
5.5.270.0050.02816.73
5.5.260.0050.03516.76
5.5.250.0120.03816.69
5.5.240.0130.03516.51
5.5.230.0000.00712.79
5.5.220.0000.01112.79
5.5.210.0080.00312.79
5.5.200.0000.00612.79
5.5.190.0030.00712.79
5.5.180.0070.00412.79
5.5.170.0060.00914.46
5.5.160.0030.00912.79
5.5.150.0030.00312.79
5.5.140.0060.00312.79
5.5.130.0040.00712.79
5.5.120.0060.00612.79
5.5.110.0060.00612.79
5.5.100.0060.00612.79
5.5.90.0060.00012.79
5.5.80.0000.01212.79
5.5.70.0000.00712.79
5.5.60.0040.00712.79
5.5.50.0030.01012.79
5.5.40.0030.00312.79
5.5.30.0030.01012.79
5.5.20.0090.00312.79
5.5.10.0040.00712.79
5.5.00.0030.00612.79

preferences:
33.1 ms | 401 KiB | 5 Q