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.0060.00918.55
8.3.50.0120.00721.27
8.3.40.0000.01518.57
8.3.30.0120.00918.82
8.3.20.0040.00420.16
8.3.10.0060.00322.13
8.3.00.0000.00820.75
8.2.180.0120.00916.38
8.2.170.0070.00722.96
8.2.160.0150.00019.15
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0000.00826.16
8.2.120.0030.00619.26
8.2.110.0100.00020.58
8.2.100.0110.00019.45
8.2.90.0000.00819.20
8.2.80.0040.00418.04
8.2.70.0040.00417.63
8.2.60.0030.00617.80
8.2.50.0000.00718.07
8.2.40.0040.00418.03
8.2.30.0040.00417.99
8.2.20.0000.00717.60
8.2.10.0030.00517.76
8.2.00.0040.00417.75
8.1.280.0100.00725.92
8.1.270.0030.00522.06
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00422.54
8.1.230.0040.00720.76
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0040.00417.35
8.1.190.0040.00417.53
8.1.180.0040.00418.70
8.1.170.0030.00618.71
8.1.160.0070.00022.15
8.1.150.0000.00718.56
8.1.140.0000.00817.45
8.1.130.0040.00417.82
8.1.120.0070.00017.48
8.1.110.0030.00517.51
8.1.100.0040.00417.39
8.1.90.0070.00017.52
8.1.80.0050.00217.44
8.1.70.0030.00317.32
8.1.60.0090.00017.64
8.1.50.0040.00417.53
8.1.40.0040.00417.48
8.1.30.0070.00017.68
8.1.20.0000.00917.67
8.1.10.0030.00517.54
8.1.00.0040.00417.35
8.0.300.0000.00719.21
8.0.290.0000.00717.05
8.0.280.0000.00718.46
8.0.270.0000.00717.18
8.0.260.0080.00016.84
8.0.250.0030.00316.87
8.0.240.0050.00216.98
8.0.230.0000.00817.00
8.0.220.0030.00316.91
8.0.210.0040.00416.89
8.0.200.0000.00616.85
8.0.190.0040.00316.98
8.0.180.0050.00317.00
8.0.170.0000.00816.94
8.0.160.0040.00416.80
8.0.150.0040.00416.80
8.0.140.0040.00416.76
8.0.130.0060.00013.37
8.0.120.0050.00316.84
8.0.110.0030.00616.81
8.0.100.0040.00416.96
8.0.90.0040.00416.89
8.0.80.0120.00916.82
8.0.70.0040.00416.73
8.0.60.0000.00716.85
8.0.50.0050.00216.91
8.0.30.0060.01217.03
8.0.20.0090.01017.40
8.0.10.0070.00017.02
8.0.00.0060.01216.73
7.4.330.0020.00215.00
7.4.320.0000.00616.59
7.4.300.0000.00616.37
7.4.290.0070.00016.52
7.4.280.0000.00716.44
7.4.270.0000.00616.31
7.4.260.0030.00316.41
7.4.250.0040.00416.48
7.4.240.0000.00716.42
7.4.230.0030.00316.36
7.4.220.0080.00916.48
7.4.210.0100.00516.49
7.4.200.0000.00716.64
7.4.190.0030.00316.45
7.4.160.0100.00716.20
7.4.150.0120.00617.40
7.4.140.0130.00617.86
7.4.130.0100.00716.47
7.4.120.0040.01516.46
7.4.110.0150.00316.31
7.4.100.0210.00316.35
7.4.90.0190.00016.25
7.4.80.0160.00619.39
7.4.70.0130.00316.37
7.4.60.0030.01216.54
7.4.50.0000.00516.29
7.4.40.0070.00722.77
7.4.30.0150.00916.54
7.4.00.0110.00415.01
7.3.330.0030.00512.98
7.3.320.0020.00213.17
7.3.310.0070.00016.34
7.3.300.0000.00616.22
7.3.290.0100.01016.26
7.3.280.0130.00316.33
7.3.270.0150.00317.40
7.3.260.0120.00616.52
7.3.250.0080.01216.44
7.3.240.0120.00816.23
7.3.230.0090.00916.59
7.3.210.0110.00516.42
7.3.200.0130.00319.39
7.3.190.0110.00916.60
7.3.180.0030.01316.22
7.3.170.0060.00916.46
7.3.160.0110.00716.20
7.3.120.0130.00314.70
7.2.330.0100.00716.43
7.2.320.0130.01016.74
7.2.310.0090.00916.45
7.2.300.0070.01716.71
7.2.290.0100.01016.41
7.1.70.0020.00517.35
7.1.60.0090.01219.82
7.1.50.0030.00917.07
7.1.00.0030.03322.42
7.0.200.0000.00816.82
7.0.140.0030.07321.93
7.0.60.0070.07720.06
7.0.50.0030.06317.90
7.0.40.0130.06019.96
7.0.30.0200.05320.14
7.0.20.0270.06020.33
7.0.10.0270.06320.36
7.0.00.0130.08720.09
5.6.280.0070.07020.86
5.6.210.0070.07720.73
5.6.200.0100.06718.16
5.6.190.0030.08320.56
5.6.180.0730.07020.33
5.6.170.0270.04320.54
5.6.160.0070.07020.46
5.6.150.0130.08018.21
5.6.140.0070.08018.22
5.6.130.0230.06718.22
5.6.120.0100.08020.96
5.6.110.0100.08020.98
5.6.100.0030.08720.93
5.6.90.0100.05321.07
5.6.80.0070.07320.35
5.6.70.0270.03320.50
5.5.350.0030.08320.38
5.5.340.0030.08017.93
5.5.330.0100.05320.42
5.5.320.0300.07720.28
5.5.310.0300.07020.28
5.5.300.0030.07717.95
5.5.290.0100.07717.91
5.5.280.0100.06720.87
5.5.270.0070.05320.83
5.5.260.0030.06320.95
5.5.250.0100.08320.54
5.5.240.0100.07020.23
5.4.450.0730.06719.10
5.4.440.0700.05319.24
5.4.430.0230.06019.42
5.4.420.0900.04019.44
5.4.410.0800.06018.99
5.4.400.0200.05318.73
5.4.390.0170.06318.58
5.4.380.0230.05318.61
5.4.370.0300.05018.77
5.4.360.0300.05318.70
5.4.350.0530.07318.63
5.4.340.0400.04718.59
5.4.320.0060.04512.45
5.4.310.0060.04912.45
5.4.300.0050.03712.45
5.4.290.0070.04612.45
5.4.280.0120.04512.35
5.4.270.0110.04212.35
5.4.260.0070.07318.84
5.4.250.0130.07019.00
5.4.240.0170.05018.84
5.4.230.0170.06318.84
5.4.220.0170.06718.88
5.4.210.0070.05318.89
5.4.200.0030.07318.77
5.4.190.0200.05719.02
5.4.180.0170.04718.78
5.4.170.0000.06018.83
5.4.160.0070.05318.88
5.4.150.0070.08018.73
5.4.140.0030.07716.49
5.4.130.0130.05716.29
5.4.120.0130.05716.35
5.4.110.0130.05016.41
5.4.100.0170.05716.29
5.4.90.0000.06316.40
5.4.80.0000.05316.49
5.4.70.0030.05316.48
5.4.60.0070.04716.48
5.4.50.0000.05716.23
5.4.40.0070.06016.38
5.4.30.0000.05316.42
5.4.20.0100.04716.40
5.4.10.0100.05016.46
5.4.00.0070.04715.68
5.3.290.0060.04312.80
5.3.280.0100.06714.46
5.3.270.0030.06714.61
5.3.260.0030.05714.30
5.3.250.0200.06314.70
5.3.240.0070.05014.44
5.3.230.0000.07014.45
5.3.220.0100.07014.72
5.3.210.0170.05714.44
5.3.200.0030.05014.57
5.3.190.0100.05714.58
5.3.180.0170.04014.57
5.3.170.0030.07714.26
5.3.160.0030.06014.43
5.3.150.0070.05014.43
5.3.140.0130.06314.55
5.3.130.0170.05314.24
5.3.120.0130.05314.39
5.3.110.0030.05314.64
5.3.100.0070.05014.18
5.3.90.0130.05014.03
5.3.80.0070.04713.87
5.3.70.0030.07013.95
5.3.60.0030.05314.01
5.3.50.0170.05714.04
5.3.40.0030.06713.95
5.3.30.0070.07013.91
5.3.20.0100.05313.73
5.3.10.0030.05013.66
5.3.00.0100.05313.65
5.2.170.0030.04011.04
5.2.160.0070.04011.03
5.2.150.0030.04711.07
5.2.140.0070.04711.06
5.2.130.0170.04011.04
5.2.120.0100.05011.02
5.2.110.0030.04011.19
5.2.100.0100.03310.98
5.2.90.0070.04011.19
5.2.80.0130.05011.01
5.2.70.0070.05711.24
5.2.60.0030.06011.07
5.2.50.0070.05311.11
5.2.40.0000.04710.91
5.2.30.0030.06010.98
5.2.20.0070.05010.97
5.2.10.0100.04710.91
5.2.00.0100.04710.78
5.1.60.0100.03310.06
5.1.50.0000.04710.04
5.1.40.0130.03710.03
5.1.30.0070.04310.30
5.1.20.0070.05310.30
5.1.10.0000.04010.25
5.1.00.0170.02310.17
5.0.50.0030.0308.64
5.0.40.0000.0308.38
5.0.30.0000.0438.21
5.0.20.0000.0308.35
5.0.10.0070.0278.33
5.0.00.0000.0408.26
4.4.90.0100.0237.18
4.4.80.0000.0237.18
4.4.70.0000.0277.18
4.4.60.0030.0277.18
4.4.50.0070.0277.18
4.4.40.0030.0437.18
4.4.30.0100.0237.18
4.4.20.0030.0307.18
4.4.10.0070.0277.18
4.4.00.0000.0337.18
4.3.110.0000.0237.18
4.3.100.0000.0307.18
4.3.90.0070.0177.18
4.3.80.0030.0377.18
4.3.70.0000.0307.18
4.3.60.0030.0177.18
4.3.50.0030.0207.18
4.3.40.0070.0307.18
4.3.30.0130.0177.18
4.3.20.0070.0277.18
4.3.10.0000.0307.18
4.3.00.0130.0206.89

preferences:
50.83 ms | 401 KiB | 5 Q