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"; print strlen($sms); while(strlen($sms) > 160) { echo "Here\n"; $short = substr($sms,0,159); echo "Send SMS Long\n"; $sms = str_replace($short,'',$sms); } if(strlen($sms) > 0) { echo "Send SMS Short\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.0110.00718.70
8.3.30.0060.00918.92
8.3.20.0040.00420.35
8.3.10.0070.00022.09
8.3.00.0040.00422.39
8.2.170.0110.01122.96
8.2.160.0090.00619.21
8.2.150.0060.00324.18
8.2.140.0050.00324.66
8.2.130.0110.00726.16
8.2.120.0040.00419.23
8.2.110.0040.00422.26
8.2.100.0090.00319.45
8.2.90.0040.00419.23
8.2.80.0060.00317.97
8.2.70.0080.00017.63
8.2.60.0090.00018.04
8.2.50.0030.00618.07
8.2.40.0040.00418.22
8.2.30.0000.00718.08
8.2.20.0000.00717.59
8.2.10.0000.00817.73
8.2.00.0000.00717.57
8.1.270.0080.00022.20
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00623.78
8.1.230.0060.00619.14
8.1.220.0000.00817.79
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0050.00317.53
8.1.180.0030.00518.37
8.1.170.0030.00518.59
8.1.160.0000.00722.07
8.1.150.0050.00518.54
8.1.140.0040.00417.32
8.1.130.0030.00317.75
8.1.120.0070.00017.43
8.1.110.0000.00717.43
8.1.100.0000.00717.45
8.1.90.0000.00717.44
8.1.80.0000.00717.38
8.1.70.0030.00317.30
8.1.60.0000.00817.53
8.1.50.0050.00517.43
8.1.40.0040.00417.41
8.1.30.0000.00717.54
8.1.20.0000.00917.45
8.1.10.0040.00417.52
8.1.00.0000.00717.46
8.0.300.0000.00719.21
8.0.290.0040.00417.18
8.0.280.0000.00718.57
8.0.270.0070.00017.38
8.0.260.0000.00716.88
8.0.250.0030.00316.96
8.0.240.0020.00516.98
8.0.230.0000.00716.78
8.0.220.0040.00416.85
8.0.210.0030.00316.75
8.0.200.0030.00316.86
8.0.190.0030.00316.89
8.0.180.0070.00016.78
8.0.170.0030.00516.86
8.0.160.0070.00016.68
8.0.150.0030.00316.73
8.0.140.0000.00716.69
8.0.130.0070.00013.27
8.0.120.0000.00816.71
8.0.110.0040.00416.72
8.0.100.0040.00416.84
8.0.90.0050.00216.66
8.0.80.0030.01216.83
8.0.70.0050.00516.84
8.0.60.0030.00616.71
8.0.50.0050.00316.78
8.0.30.0110.00716.99
8.0.20.0060.01317.40
8.0.10.0030.00316.82
8.0.00.0040.01516.85
7.4.330.0050.00015.00
7.4.320.0040.00416.56
7.4.300.0060.00016.46
7.4.290.0050.00316.57
7.4.280.0050.00316.54
7.4.270.0020.00516.46
7.4.260.0000.00816.53
7.4.250.0040.00416.52
7.4.240.0050.00316.56
7.4.230.0030.00316.43
7.4.220.0120.00616.60
7.4.210.0080.00816.54
7.4.200.0040.00416.61
7.4.190.0040.00416.43
7.4.160.0040.01116.54
7.4.150.0120.00617.40
7.4.140.0110.00717.86
7.4.130.0110.01316.52
7.4.120.0090.01016.54
7.4.110.0160.00016.52
7.4.100.0090.01516.57
7.4.90.0070.01316.39
7.4.80.0030.01319.39
7.4.70.0130.00316.36
7.4.60.0120.01216.51
7.4.50.0000.00416.52
7.4.40.0060.00922.77
7.4.30.0120.00816.48
7.4.00.0050.01214.88
7.3.330.0000.00613.17
7.3.320.0060.00013.11
7.3.310.0030.00316.28
7.3.300.0030.00316.11
7.3.290.0030.01116.31
7.3.280.0080.00816.26
7.3.270.0150.00317.40
7.3.260.0140.00316.44
7.3.250.0100.00916.51
7.3.240.0110.00616.29
7.3.230.0110.01116.39
7.3.210.0100.01016.53
7.3.200.0170.00019.39
7.3.190.0080.00816.22
7.3.180.0120.00916.33
7.3.170.0060.01616.41
7.3.160.0100.00616.48
7.3.120.0120.00514.62
7.3.110.0050.01214.52
7.3.100.0050.01014.76
7.3.90.0080.00814.59
7.3.80.0080.00614.73
7.3.70.0000.01214.77
7.3.60.0050.00914.83
7.3.50.0080.00714.85
7.3.40.0060.00514.78
7.3.30.0060.00714.79
7.3.20.0090.00316.49
7.3.10.0050.00716.68
7.3.00.0060.00516.71
7.2.330.0150.00916.51
7.2.320.0130.00316.48
7.2.310.0060.01816.73
7.2.300.0080.00816.57
7.2.290.0080.00816.36
7.2.250.0030.01314.94
7.2.240.0060.01315.04
7.2.230.0120.00515.00
7.2.220.0060.00615.13
7.2.210.0090.00614.84
7.2.200.0010.00915.03
7.2.190.0000.01315.08
7.2.180.0020.01215.03
7.2.170.0040.00914.98
7.2.160.0120.00314.86
7.2.150.0060.00916.84
7.2.140.0030.01316.57
7.2.130.0100.00016.89
7.2.120.0110.00716.86
7.2.110.0070.01016.89
7.2.100.0080.00816.68
7.2.90.0030.01016.92
7.2.80.0100.00316.57
7.2.70.0080.00416.90
7.2.60.0040.00916.98
7.2.50.0100.00316.91
7.2.40.0120.00016.91
7.2.30.0090.00917.02
7.2.20.0090.00916.72
7.2.10.0030.00916.79
7.2.00.0100.00518.01
7.1.330.0070.00615.87
7.1.320.0000.01115.83
7.1.310.0030.01215.74
7.1.300.0020.00915.70
7.1.290.0050.00515.85
7.1.280.0050.00815.88
7.1.270.0040.00915.67
7.1.260.0100.00315.88
7.1.250.0080.00715.73
7.1.200.0090.00315.63
7.1.100.0040.00718.04
7.1.70.0030.00717.66
7.1.60.0080.00317.66
7.1.50.0040.00717.66
7.1.40.0070.00417.66
7.1.30.0040.00817.66
7.1.20.0030.01317.66
7.1.10.0030.00717.66
7.1.00.0000.00817.66
7.0.200.0030.00617.66
7.0.190.0040.00717.66
7.0.180.0080.00317.66
7.0.170.0000.01117.66
7.0.160.0000.01217.66
7.0.150.0040.00417.66
7.0.140.0040.00417.66
7.0.130.0000.00717.66
7.0.120.0000.00717.66
7.0.110.0040.00717.66
7.0.100.0030.00517.66
7.0.90.0050.00317.66
7.0.80.0030.01017.66
7.0.70.0040.00417.66
7.0.60.0000.00817.66
7.0.50.0040.00417.66
7.0.40.0000.01017.66
7.0.30.0030.00717.66
7.0.20.0050.00517.66
7.0.10.0030.00617.66
7.0.00.0000.00717.66
5.6.300.0070.03620.91
5.6.290.0030.07020.66
5.6.280.0000.04320.97
5.6.270.0030.05021.00
5.6.260.0030.04420.89
5.6.250.0030.04220.87
5.6.240.0000.04420.93
5.6.230.0070.04020.79
5.6.220.0070.04520.95
5.6.210.0030.04620.61
5.6.200.0130.03520.93
5.6.190.0030.04720.86
5.6.180.0030.04720.86
5.6.170.0030.04420.92
5.6.160.0070.04121.03
5.6.150.0030.04820.70
5.6.140.0030.04621.01
5.6.130.0100.04221.04
5.6.120.0030.05620.85
5.6.110.0100.07920.73
5.6.100.0000.04820.74
5.6.90.0000.04520.93
5.6.80.0000.04120.20
5.6.70.0000.04220.06
5.6.60.0070.04020.19
5.6.50.0000.04420.38
5.6.40.0060.03920.09
5.6.30.0030.03920.19
5.6.20.0000.04220.38
5.6.10.0030.04320.32
5.6.00.0090.03520.20
5.5.380.0030.06017.66
5.5.370.0030.03817.66
5.5.360.0070.03817.66
5.5.350.0040.03917.66
5.5.340.0070.04117.93
5.5.330.0060.04117.89
5.5.320.0000.04518.05
5.5.310.0030.04218.02
5.5.300.0090.03418.05
5.5.290.0070.03717.92
5.5.280.0000.07317.86
5.5.270.0000.05617.69
5.5.260.0000.04717.85
5.5.250.0030.04217.82
5.5.240.0200.03017.66
5.5.230.0030.04017.66
5.5.220.0030.03717.66
5.5.210.0000.04017.66
5.5.200.0030.03717.66
5.5.190.0030.05117.66
5.5.180.0040.04217.66
5.5.160.0060.03917.66
5.5.150.0070.04617.66
5.5.140.0000.04217.66
5.5.130.0060.07817.66
5.5.120.0030.04017.66
5.5.110.0030.04017.66
5.5.100.0000.04017.66
5.5.90.0000.04217.66
5.5.80.0070.03817.66
5.5.70.0000.04217.66
5.5.60.0000.04217.66
5.5.50.0030.03817.66
5.5.40.0030.04017.66
5.5.30.0100.04617.66
5.5.20.0070.04417.66
5.5.10.0030.04817.66
5.5.00.0100.04917.66
5.4.450.0130.03919.38
5.4.440.0030.07319.39
5.4.430.0030.03719.38
5.4.420.0000.04919.23
5.4.410.0000.04019.19
5.4.400.0000.03919.13
5.4.390.0070.03919.02
5.4.380.0040.03919.04
5.4.370.0030.03819.14
5.4.360.0000.04319.14
5.4.350.0030.03818.97
5.4.340.0040.04218.91
5.4.320.0000.04419.01
5.4.310.0070.04119.10
5.4.300.0070.03319.14
5.4.290.0030.05719.07
5.4.280.0030.03819.01
5.4.270.0000.03819.00
5.4.260.0090.03418.85
5.4.250.0030.05618.89
5.4.240.0100.03319.04
5.4.230.0070.03619.00
5.4.220.0030.03718.96
5.4.210.0000.04218.82
5.4.200.0000.04219.01
5.4.190.0060.03819.09
5.4.180.0100.03219.05
5.4.170.0030.03718.95
5.4.160.0100.03018.89
5.4.150.0030.04018.84
5.4.140.0030.03617.66
5.4.130.0040.03917.66
5.4.120.0000.03617.66
5.4.110.0070.04017.66
5.4.100.0030.03617.66
5.4.90.0100.02917.66
5.4.80.0000.04017.66
5.4.70.0060.03217.66
5.4.60.0030.04117.66
5.4.50.0000.04317.66
5.4.40.0000.04817.66
5.4.30.0070.03617.66
5.4.20.0030.03317.66
5.4.10.0000.05317.66
5.4.00.0030.03617.66
5.3.290.0030.04217.66
5.3.280.0000.04417.66
5.3.270.0030.03617.66
5.3.260.0030.03717.66
5.3.250.0000.03817.66
5.3.240.0030.05617.66
5.3.230.0000.04117.66
5.3.220.0070.03717.66
5.3.210.0030.04517.66
5.3.200.0030.03517.66
5.3.190.0000.03817.66
5.3.180.0100.03117.66
5.3.170.0030.03717.66
5.3.160.0030.03617.66
5.3.150.0230.03617.66
5.3.140.0070.04517.66
5.3.130.0030.03917.66
5.3.120.0030.04917.66
5.3.110.0030.03817.66
5.3.100.0000.03717.66
5.3.90.0040.03617.66
5.3.80.0000.04017.66
5.3.70.0000.03917.66
5.3.60.0100.06217.66
5.3.50.0000.04617.66
5.3.40.0030.03317.66
5.3.30.0030.06017.66
5.3.20.0000.03817.66
5.3.10.0070.03017.66
5.3.00.0070.03117.66
5.2.170.0060.02517.66
5.2.160.0000.03317.66
5.2.150.0000.03217.66
5.2.140.0030.04617.66
5.2.130.0030.07017.66
5.2.120.0030.02917.66
5.2.110.0000.03617.66
5.2.100.0000.05317.66
5.2.90.0130.02317.66
5.2.80.0030.03317.66
5.2.70.0300.00717.66
5.2.60.0000.03117.66
5.2.50.0000.03317.66
5.2.40.0030.03217.66
5.2.30.0030.02817.66
5.2.20.0030.02717.66
5.2.10.0000.03217.66
5.2.00.0030.03117.66
5.1.60.0000.02717.66
5.1.50.0000.03517.66
5.1.40.0000.05717.66
5.1.30.0000.04717.66
5.1.20.0000.03717.66
5.1.10.0000.02817.66
5.1.00.0030.02417.66
5.0.50.0030.02017.66
5.0.40.0000.02117.66
5.0.30.0000.03917.66
5.0.20.0000.02217.66
5.0.10.0000.02517.66
5.0.00.0000.03417.66
4.4.90.0030.01417.66
4.4.80.0000.01617.66
4.4.70.0000.02917.66
4.4.60.0000.01817.66
4.4.50.0000.01717.66
4.4.40.0030.02317.66
4.4.30.0000.02417.66
4.4.20.0090.01217.66
4.4.10.0000.02117.66
4.4.00.0000.02617.66
4.3.110.0070.01717.66
4.3.100.0100.01317.66
4.3.90.0030.01317.66
4.3.80.0000.03017.66
4.3.70.0000.01617.66
4.3.60.0000.01617.66
4.3.50.0000.01617.66
4.3.40.0000.02617.66
4.3.30.0000.01817.66
4.3.20.0000.01717.66
4.3.10.0040.01817.66
4.3.00.0030.01517.66

preferences:
42.53 ms | 400 KiB | 5 Q