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($short) . "\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.40.0040.01118.59
8.3.30.0100.00318.95
8.3.20.0060.00320.27
8.3.10.0040.00423.54
8.3.00.0050.00319.02
8.2.170.0040.01122.96
8.2.160.0110.00720.38
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0080.00019.77
8.2.110.0060.00321.03
8.2.100.0000.01117.89
8.2.90.0090.00017.84
8.2.80.0060.00317.97
8.2.70.0000.00818.04
8.2.60.0000.00818.03
8.2.50.0000.00918.10
8.2.40.0050.00319.34
8.2.30.0030.00719.14
8.2.20.0040.00417.76
8.2.10.0000.00718.18
8.2.00.0000.00717.69
8.1.270.0040.00423.71
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00717.45
8.1.230.0120.00021.04
8.1.220.0000.00817.79
8.1.210.0080.00019.04
8.1.200.0040.00417.35
8.1.190.0000.00817.10
8.1.180.0040.00418.10
8.1.170.0040.00418.61
8.1.160.0020.00518.84
8.1.150.0000.00820.06
8.1.140.0040.00417.50
8.1.130.0030.00317.74
8.1.120.0030.00317.48
8.1.110.0000.00817.42
8.1.100.0000.00717.46
8.1.90.0050.00217.36
8.1.80.0000.00817.41
8.1.70.0000.00717.43
8.1.60.0080.00017.50
8.1.50.0080.00017.51
8.1.40.0030.00717.43
8.1.30.0080.00017.63
8.1.20.0000.00717.55
8.1.10.0050.00217.41
8.1.00.0000.00817.34
8.0.300.0000.00719.55
8.0.290.0000.00816.75
8.0.280.0000.00718.50
8.0.270.0040.00417.26
8.0.260.0000.00617.11
8.0.250.0030.00316.85
8.0.240.0000.00716.93
8.0.230.0020.00516.91
8.0.220.0000.00816.77
8.0.210.0000.00616.89
8.0.200.0040.00416.95
8.0.190.0030.00616.87
8.0.180.0040.00416.88
8.0.170.0060.00316.89
8.0.160.0030.00316.91
8.0.150.0070.00016.94
8.0.140.0030.00516.90
8.0.130.0030.00313.29
8.0.120.0030.00616.90
8.0.110.0040.00416.91
8.0.100.0070.00016.84
8.0.90.0040.00417.01
8.0.80.0150.00016.86
8.0.70.0000.00816.89
8.0.60.0000.00716.69
8.0.50.0000.00716.79
8.0.30.0090.01017.03
8.0.20.0110.00917.40
8.0.10.0040.00416.90
8.0.00.0060.01416.67
7.4.330.0000.00515.00
7.4.320.0000.00716.58
7.4.300.0030.00316.47
7.4.290.0040.00416.43
7.4.280.0040.00416.34
7.4.270.0000.00816.47
7.4.260.0030.00316.51
7.4.250.0000.00716.46
7.4.240.0020.00616.52
7.4.230.0030.00316.26
7.4.220.0100.00616.64
7.4.210.0090.00716.59
7.4.200.0000.00716.53
7.4.190.0080.00016.63
7.4.160.0120.00416.29
7.4.150.0060.01417.40
7.4.140.0120.00517.86
7.4.130.0120.00516.50
7.4.120.0070.01116.50
7.4.110.0060.01216.55
7.4.100.0140.00716.56
7.4.90.0120.00816.42
7.4.80.0060.01219.39
7.4.70.0030.01316.46
7.4.60.0030.01416.49
7.4.50.0000.00416.46
7.4.40.0130.00316.57
7.4.30.0030.01316.34
7.4.00.0080.00914.98
7.3.330.0060.00013.08
7.3.320.0030.00313.20
7.3.310.0070.00016.20
7.3.300.0070.00016.31
7.3.290.0070.01316.38
7.3.280.0110.00516.27
7.3.270.0140.00417.40
7.3.260.0100.00816.39
7.3.250.0140.00716.29
7.3.240.0070.01716.31
7.3.230.0110.00516.39
7.3.210.0030.01316.33
7.3.200.0120.00919.39
7.3.190.0120.00916.33
7.3.180.0030.01316.38
7.3.170.0030.01316.27
7.3.160.0120.00416.27
7.3.120.0030.01514.78
7.3.110.0080.00914.81
7.3.100.0060.00714.85
7.3.90.0090.00814.84
7.3.80.0040.00914.81
7.3.70.0050.00714.68
7.3.60.0080.00514.87
7.3.50.0070.00514.79
7.3.40.0040.01114.65
7.3.30.0030.01014.80
7.3.20.0020.01316.71
7.3.10.0110.00416.50
7.3.00.0070.00716.57
7.2.330.0070.01016.72
7.2.320.0120.00616.66
7.2.310.0030.01416.70
7.2.300.0100.00616.40
7.2.290.0090.00916.73
7.2.250.0070.00915.12
7.2.240.0070.01214.76
7.2.230.0100.00514.78
7.2.220.0110.00415.04
7.2.210.0050.01215.01
7.2.200.0070.00615.03
7.2.190.0020.01415.05
7.2.180.0020.01514.80
7.2.170.0050.00914.85
7.2.160.0060.00915.01
7.2.150.0120.00317.04
7.2.140.0060.00616.78
7.2.130.0090.00616.96
7.2.120.0030.01016.90
7.2.110.0030.01116.96
7.2.100.0090.00416.89
7.2.90.0040.00816.89
7.2.80.0070.00816.96
7.2.70.0040.00717.02
7.2.60.0020.01117.00
7.2.50.0040.00716.76
7.2.40.0100.00316.83
7.2.30.0080.00616.82
7.2.20.0060.00616.80
7.2.10.0060.00816.85
7.2.00.0030.01217.67
7.1.330.0030.01215.70
7.1.320.0050.00715.69
7.1.310.0050.01115.73
7.1.300.0070.00715.76
7.1.290.0060.00715.79
7.1.280.0060.00415.61
7.1.270.0070.00615.67
7.1.260.0060.00615.69
7.1.250.0080.00415.66
7.1.240.0000.01215.46
7.1.230.0110.00415.73
7.1.220.0030.00715.57
7.1.210.0040.01115.55
7.1.200.0040.01115.77
7.1.190.0000.00815.79
7.1.180.0030.00715.79
7.1.170.0000.01215.70
7.1.160.0000.00815.90
7.1.150.0100.00315.72
7.1.140.0090.00315.84
7.1.130.0090.00315.55
7.1.120.0040.00815.73
7.1.110.0110.00415.92
7.1.100.0100.00616.84
7.1.90.0070.00315.69
7.1.80.0030.01215.54
7.1.70.0030.01016.50
7.1.60.0090.00917.64
7.1.50.0080.01116.29
7.1.40.0060.01115.82
7.1.30.0130.00015.71
7.1.20.0050.00515.77
7.1.10.0070.00715.75
7.1.00.0000.04418.92
7.0.330.0060.00615.14
7.0.320.0080.00415.54
7.0.310.0030.01315.05
7.0.300.0040.01115.14
7.0.290.0000.00815.50
7.0.280.0110.00315.49
7.0.270.0030.01015.59
7.0.260.0000.01315.47
7.0.250.0120.00015.26
7.0.240.0000.00815.19
7.0.230.0080.00415.39
7.0.220.0040.01115.12
7.0.210.0100.00715.19
7.0.200.0020.00916.25
7.0.190.0080.00015.53
7.0.180.0060.00615.31
7.0.170.0040.01215.39
7.0.160.0000.01515.24
7.0.150.0060.00315.68
7.0.140.0100.03218.78
7.0.130.0040.00715.55
7.0.120.0030.01015.13
7.0.110.0000.00815.12
7.0.100.0070.00715.58
7.0.90.0110.00415.46
7.0.80.0070.00315.59
7.0.70.0030.00715.04
7.0.60.0070.02017.61
7.0.50.0050.03816.68
7.0.40.0110.03016.79
7.0.30.0130.02416.78
7.0.20.0100.02716.77
7.0.10.0060.04516.79
7.0.00.0030.02516.67
5.6.400.0070.00314.41
5.6.390.0060.00313.98
5.6.380.0090.00014.28
5.6.370.0080.00014.29
5.6.360.0000.01314.48
5.6.350.0040.00714.31
5.6.340.0030.01314.35
5.6.330.0040.00414.30
5.6.320.0090.00314.40
5.6.310.0070.00713.98
5.6.300.0070.00714.25
5.6.290.0030.01014.31
5.6.280.0030.04217.82
5.6.270.0090.00314.46
5.6.260.0030.01014.54
5.6.250.0100.00314.43
5.6.240.0040.01114.16
5.6.230.0000.00814.37
5.6.220.0080.00014.12
5.6.210.0060.04317.50
5.6.200.0050.04516.18
5.6.190.0100.04217.34
5.6.180.0220.02717.26
5.6.170.0100.02717.56
5.6.160.0060.02317.47
5.6.150.0030.04416.23
5.6.140.0050.02016.18
5.6.130.0070.04216.31
5.6.120.0040.04217.79
5.6.110.0090.04517.88
5.6.100.0040.02417.69
5.6.90.0070.02217.60
5.6.80.0030.04117.22
5.6.70.2280.02417.27
5.6.60.0030.01314.07
5.6.50.0040.00414.37
5.6.40.0040.00714.14
5.6.30.0060.00614.34
5.6.20.0070.00714.20
5.6.10.0030.00914.38
5.6.00.0040.00714.40
5.5.380.0050.00514.12
5.5.370.0070.00313.99
5.5.360.0000.01114.30
5.5.350.0020.04917.30
5.5.340.0060.04316.21
5.5.330.0050.04717.08
5.5.320.0070.04717.26
5.5.310.0130.02517.38
5.5.300.0060.04616.10
5.5.290.0050.02316.16
5.5.280.0060.03817.67
5.5.270.0180.03517.46
5.5.260.0180.03717.64
5.5.250.0110.02317.54
5.5.240.0030.04317.28
5.5.230.0000.01414.22
5.5.220.0000.01514.21
5.5.210.0040.01014.36
5.5.200.0060.00914.17
5.5.190.0060.00614.12
5.5.180.0080.00413.96
5.5.170.0080.00014.14
5.5.160.0060.00614.14
5.5.150.0080.00314.18
5.5.140.0080.00413.96
5.5.130.0030.01313.85
5.5.120.0070.00714.04
5.5.110.0090.00614.55
5.5.100.0060.00914.24
5.5.90.0100.00314.43
5.5.80.0030.00914.25
5.5.70.0060.00614.36
5.5.60.0090.00013.95
5.5.50.0060.00314.42
5.5.40.0070.00713.95
5.5.30.0000.01714.07
5.5.20.0030.01013.95
5.5.10.0030.01014.28
5.5.00.0090.00914.24
5.4.450.0130.03015.66
5.4.440.0150.03715.59
5.4.430.0170.03515.57
5.4.420.0080.02615.47
5.4.410.0150.02715.54
5.4.400.0100.04515.43
5.4.390.0170.03315.33
5.4.380.0130.03115.44
5.4.370.0150.03015.40
5.4.360.0190.03515.47
5.4.350.0150.03315.27
5.4.340.0150.03815.49
5.4.330.0000.00811.73
5.4.320.0100.02915.41
5.4.310.0140.03015.26
5.4.300.0150.02515.48
5.4.290.0150.03315.40
5.4.280.0200.03615.38
5.4.270.0180.03515.39
5.4.260.0170.03515.41
5.4.250.0240.02315.25
5.4.240.0130.03615.40
5.4.230.0150.02615.43
5.4.220.0080.04915.47
5.4.210.0160.03315.48
5.4.200.0140.04015.30
5.4.190.0170.03515.41
5.4.180.0120.02715.33
5.4.170.0140.02715.49
5.4.160.0180.02115.31
5.4.150.0230.03015.32
5.4.140.0130.04014.05
5.4.130.0130.03814.04
5.4.120.0170.03713.99
5.4.110.0160.03013.97
5.4.100.0170.03014.11
5.4.90.0110.02814.09
5.4.80.0150.02414.10
5.4.70.0150.02114.08
5.4.60.0170.03713.98
5.4.50.0100.03314.06
5.4.40.0300.01814.04
5.4.30.0150.02814.00
5.4.20.0170.01814.10
5.4.10.0150.02214.05
5.4.00.0200.02513.74
5.3.290.0150.02913.16
5.3.280.0100.04313.13
5.3.270.0120.04313.14
5.3.260.0150.02113.10
5.3.250.0130.04013.10
5.3.240.0220.03513.18
5.3.230.0110.03613.18
5.3.220.0130.02013.11
5.3.210.0120.03813.11
5.3.200.0130.03813.13
5.3.190.0180.03213.17
5.3.180.0120.04013.11
5.3.170.0120.03013.06
5.3.160.0210.03513.17
5.3.150.0130.03813.06
5.3.140.0130.03113.06
5.3.130.0130.02813.09
5.3.120.0120.02413.18
5.3.110.0150.03813.08
5.3.100.0070.04612.85
5.3.90.0140.02712.92
5.3.80.0120.03512.86
5.3.70.0140.02712.89
5.3.60.0160.02712.84
5.3.50.0130.02512.81
5.3.40.0130.02812.78
5.3.30.0170.03712.74
5.3.20.0150.03912.63
5.3.10.0150.03812.71
5.3.00.0150.03812.71
5.2.170.0270.05012.59
5.2.160.0270.02712.59
5.2.150.0230.03312.59
5.2.140.0230.04312.59
5.2.130.0130.04012.59
5.2.120.0200.06312.59
5.2.110.0170.04312.59
5.2.100.0230.06012.59
5.2.90.0230.06012.59
5.2.80.0270.05012.59
5.2.70.0200.02712.59
5.2.60.0170.05012.59
5.2.50.0300.05312.59
5.2.40.0200.04312.59
5.2.30.0200.05712.59
5.2.20.0170.05312.59
5.2.10.0170.05712.59
5.2.00.0230.05712.59
5.1.60.0130.04312.59
5.1.50.0200.03712.59
5.1.40.0170.04012.59
5.1.30.0170.05012.59
5.1.20.0100.05712.59
5.1.10.0130.04312.59
5.1.00.0200.03712.59
5.0.50.0100.04312.59
5.0.40.0070.03312.59
5.0.30.0130.05012.59
5.0.20.0130.03712.59
5.0.10.0100.04012.59
5.0.00.0130.05712.59
4.4.90.0070.03712.59
4.4.80.0130.03012.59
4.4.70.0130.03012.59
4.4.60.0100.03312.59
4.4.50.0100.03012.59
4.4.40.0170.04712.59
4.4.30.0070.03712.59
4.4.20.0070.03712.59
4.4.10.0100.03312.59
4.4.00.0070.05012.59
4.3.110.0100.02012.59
4.3.100.0100.02712.59
4.3.90.0030.03012.59
4.3.80.0130.04012.59
4.3.70.0070.02012.59
4.3.60.0100.03312.59
4.3.50.0100.03312.59
4.3.40.0100.05012.59
4.3.30.0030.03012.59
4.3.20.0030.03312.59
4.3.10.0030.02712.59
4.3.00.0000.03012.59

preferences:
47.1 ms | 400 KiB | 5 Q