3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sms = "Not sure why it sent twice :/ hmmm lets hope I didn't put a bug in the code :( trying again :* <3, Not sure why it sent twice :/ hmmm lets hope I didn't put a bug in the code :( trying again :* <3, Not sure why it sent twice :/ hmmm lets hope I didn't put a bug in the code :( trying again :* <3, Not sure why it sent twice :/ hmmm lets hope I didn't put a bug in the code :( trying again :* <3"; echo strlen($sms) . "\n"; while(strlen($sms) > 160) { echo "Here\n"; $short = substr($sms,0,159); echo "Send SMS Long: " . strlen($sms) . "\n" ; $sms = str_replace($short,'',$sms); } if(strlen($sms) > 0) { echo "Send SMS Short: " . strlen($sms) . "\n"; } ?>

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.0070.00718.18
8.3.50.0090.00921.27
8.3.40.0150.00018.63
8.3.30.0120.00419.01
8.3.20.0000.00720.33
8.3.10.0030.00522.09
8.3.00.0030.00320.77
8.2.180.0040.01116.38
8.2.170.0170.00022.96
8.2.160.0070.00719.19
8.2.150.0040.00424.18
8.2.140.0050.00224.66
8.2.130.0060.00326.16
8.2.120.0040.00419.23
8.2.110.0060.00322.24
8.2.100.0000.01219.41
8.2.90.0000.00719.00
8.2.80.0050.00317.97
8.2.70.0050.00317.63
8.2.60.0060.00318.05
8.2.50.0080.00018.07
8.2.40.0040.00418.34
8.2.30.0040.00418.01
8.2.20.0030.00617.73
8.2.10.0040.00717.63
8.2.00.0020.00517.88
8.1.280.0130.00325.92
8.1.270.0080.00022.14
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00623.84
8.1.230.0110.00019.19
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0060.00317.22
8.1.190.0040.00417.51
8.1.180.0050.00318.70
8.1.170.0000.00918.59
8.1.160.0000.00722.28
8.1.150.0030.00818.58
8.1.140.0040.00417.46
8.1.130.0070.00017.77
8.1.120.0040.00417.44
8.1.110.0070.00017.46
8.1.100.0030.00317.48
8.1.90.0000.00717.35
8.1.80.0070.00017.51
8.1.70.0050.00317.36
8.1.60.0000.00917.62
8.1.50.0000.00717.54
8.1.40.0050.00317.51
8.1.30.0000.00717.67
8.1.20.0060.00317.68
8.1.10.0040.00417.59
8.1.00.0020.00517.44
8.0.300.0000.00718.77
8.0.290.0000.00717.05
8.0.280.0030.00318.33
8.0.270.0030.00317.26
8.0.260.0030.00316.74
8.0.250.0030.00316.93
8.0.240.0070.00016.86
8.0.230.0070.00017.00
8.0.220.0030.00316.93
8.0.210.0000.00716.91
8.0.200.0060.00016.93
8.0.190.0020.00516.98
8.0.180.0040.00416.77
8.0.170.0000.00816.82
8.0.160.0000.00916.91
8.0.150.0070.00016.77
8.0.140.0050.00216.87
8.0.130.0000.00613.29
8.0.120.0000.00816.84
8.0.110.0040.00416.82
8.0.100.0030.00516.78
8.0.90.0000.00716.86
8.0.80.0070.01116.81
8.0.70.0000.00816.96
8.0.60.0000.00816.73
8.0.50.0040.00416.71
8.0.30.0100.00917.14
8.0.20.0130.00517.40
8.0.10.0000.00816.90
8.0.00.0070.01116.69
7.4.330.0030.00315.02
7.4.320.0030.00316.52
7.4.300.0000.00616.44
7.4.290.0000.00716.46
7.4.280.0050.00316.55
7.4.270.0000.00716.55
7.4.260.0000.00716.46
7.4.250.0000.00816.50
7.4.240.0040.00316.54
7.4.230.0000.00716.33
7.4.220.0100.01016.52
7.4.210.0100.00416.45
7.4.200.0070.00016.44
7.4.190.0030.00316.42
7.4.160.0080.00816.30
7.4.150.0030.01417.40
7.4.140.0040.01417.86
7.4.130.0140.00416.50
7.4.120.0050.01316.47
7.4.110.0070.01116.56
7.4.100.0150.00316.36
7.4.90.0130.00616.37
7.4.80.0090.01219.39
7.4.70.0030.01416.55
7.4.60.0090.00616.30
7.4.50.0050.00316.55
7.4.40.0090.00622.77
7.4.30.0040.02016.54
7.4.00.0070.01014.87
7.3.330.0000.00613.17
7.3.320.0000.00513.18
7.3.310.0070.00016.32
7.3.300.0030.00316.31
7.3.290.0100.00716.23
7.3.280.0070.00916.28
7.3.270.0030.01517.40
7.3.260.0180.00616.72
7.3.250.0090.00916.27
7.3.240.0090.00816.36
7.3.230.0080.00816.59
7.3.210.0030.01316.23
7.3.200.0060.00919.39
7.3.190.0040.01816.61
7.3.180.0080.00816.45
7.3.170.0060.01216.32
7.3.160.0170.00416.57
7.3.120.0040.00414.89
7.2.330.0130.00416.47
7.2.320.0030.01716.77
7.2.310.0120.00616.68
7.2.300.0160.00616.70
7.2.290.0060.01216.52
7.2.60.0030.01316.83
7.2.00.0030.01019.47
7.1.200.0000.01415.64
7.1.100.0030.00618.20
7.1.70.0000.00717.10
7.1.60.0030.00817.23
7.1.50.0000.01516.92
7.1.00.0030.03322.48
7.0.200.0060.00816.81
7.0.140.0000.07721.97
7.0.60.0030.04020.05
7.0.50.0100.08317.91
7.0.40.0070.07720.06
7.0.30.0530.07320.01
7.0.20.0330.07720.16
7.0.10.0130.06720.04
7.0.00.0170.07320.18
5.6.280.0070.07021.04
5.6.210.0030.05320.67
5.6.200.0030.04018.18
5.6.190.0170.05020.43
5.6.180.0370.07720.27
5.6.170.0230.04720.49
5.6.160.0170.05320.55
5.6.150.0100.05018.04
5.6.140.0070.08318.18
5.6.130.0030.04018.14
5.6.120.0030.04321.00
5.6.110.0100.08021.14
5.6.100.0100.07020.95
5.6.90.0130.06720.97
5.6.80.0200.07020.38
5.6.70.3370.02720.36
5.5.350.0070.07020.32
5.5.340.0100.04718.02
5.5.330.0070.05320.12
5.5.320.0230.04020.21
5.5.310.0300.07720.20
5.5.300.0100.07017.89
5.5.290.0030.04017.91
5.5.280.0070.07720.87
5.5.270.0030.05320.76
5.5.260.0100.07720.88
5.5.250.0030.06720.54
5.5.240.0000.06720.02
5.4.450.0670.06319.48
5.4.440.0730.06019.63
5.4.430.0130.05719.46
5.4.420.0600.06019.62
5.4.410.0630.05719.50
5.4.400.1100.06018.81
5.4.390.1130.06018.61
5.4.380.0100.05718.46
5.4.370.0100.06318.57
5.4.360.0470.06018.47
5.4.350.0400.05718.50
5.4.340.0470.03718.46
5.4.320.0070.03512.46
5.4.310.0070.03912.45
5.4.300.0070.03512.46
5.4.290.0050.03912.45
5.4.280.0120.03712.35
5.4.270.0030.03812.35
5.4.260.0100.05018.75
5.4.250.0100.07018.65
5.4.240.0100.07018.89
5.4.230.0100.07719.00
5.4.220.0100.07718.78
5.4.210.0100.05018.87
5.4.200.0070.05318.89
5.4.190.0070.06718.92
5.4.180.0170.06718.75
5.4.170.0070.05718.89
5.4.160.0170.06018.91
5.4.150.0030.08318.91
5.4.140.0100.05016.27
5.4.130.0170.06716.41
5.4.120.0030.06716.29
5.4.110.0070.07316.40
5.4.100.0130.06316.21
5.4.90.0130.04716.35
5.4.80.0130.06716.39
5.4.70.0170.06716.35
5.4.60.0100.05316.46
5.4.50.0030.05716.23
5.4.40.0170.06016.48
5.4.30.0030.05316.38
5.4.20.0130.05316.17
5.4.10.0070.05716.32
5.4.00.0030.06015.71
5.3.290.0060.03912.80
5.3.280.0070.06714.59
5.3.270.0100.05314.62
5.3.260.0130.07014.75
5.3.250.0100.07014.70
5.3.240.0030.06014.61
5.3.230.0130.05314.44
5.3.220.0130.06714.58
5.3.210.0070.07714.42
5.3.200.0100.07014.57
5.3.190.0000.06014.27
5.3.180.0000.08014.57
5.3.170.0100.06714.56
5.3.160.0300.05314.59
5.3.150.0130.06314.57
5.3.140.0100.06314.25
5.3.130.0070.07714.64
5.3.120.0100.05714.56
5.3.110.0100.06014.47
5.3.100.0300.05014.13
5.3.90.0100.06013.71
5.3.80.0070.05014.11
5.3.70.0030.06014.16
5.3.60.0130.06013.88
5.3.50.0130.05713.83
5.3.40.0100.05313.82
5.3.30.0000.05713.84
5.3.20.0100.05313.61
5.3.10.0170.05313.42
5.3.00.0170.06313.66
5.2.170.0100.04011.05
5.2.160.0100.05311.06
5.2.150.0130.05311.16
5.2.140.0070.05311.25
5.2.130.0170.04710.86
5.2.120.0070.04011.10
5.2.110.0070.05311.11
5.2.100.0030.04011.11
5.2.90.0030.05710.93
5.2.80.0030.06011.09
5.2.70.0230.05010.92
5.2.60.0100.04011.07
5.2.50.0030.04311.03
5.2.40.0030.04011.14
5.2.30.0000.06010.87
5.2.20.0070.03710.89
5.2.10.0070.03711.03
5.2.00.0000.05010.79
5.1.60.0030.03310.23
5.1.50.0130.03710.18
5.1.40.0030.0509.94
5.1.30.0130.03010.37
5.1.20.0030.03710.43
5.1.10.0130.03710.21
5.1.00.0030.05310.15
5.0.50.0100.0308.45
5.0.40.0030.0338.32
5.0.30.0070.0508.28
5.0.20.0070.0238.24
5.0.10.0030.0378.12
5.0.00.0000.0478.14
4.4.90.0030.0277.23
4.4.80.0100.0207.23
4.4.70.0070.0237.23
4.4.60.0000.0237.23
4.4.50.0030.0277.23
4.4.40.0000.0377.23
4.4.30.0100.0237.23
4.4.20.0030.0207.23
4.4.10.0030.0207.22
4.4.00.0100.0277.22
4.3.110.0000.0277.22
4.3.100.0030.0237.22
4.3.90.0000.0207.22
4.3.80.0030.0337.22
4.3.70.0000.0237.22
4.3.60.0030.0207.22
4.3.50.0070.0237.22
4.3.40.0000.0377.22
4.3.30.0000.0307.22
4.3.20.0100.0207.22
4.3.10.0000.0307.22
4.3.00.0100.0236.89

preferences:
41.83 ms | 401 KiB | 5 Q