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); echo $short . "\n"; } if(strlen($sms) > 0) { echo "Send SMS Short: " . strlen($sms) . "\n"; echo $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.55
8.3.50.0090.00921.14
8.3.40.0120.00618.85
8.3.30.0110.00418.97
8.3.20.0070.00020.13
8.3.10.0000.00821.96
8.3.00.0040.00422.51
8.2.180.0100.01016.50
8.2.170.0150.00322.96
8.2.160.0090.01319.06
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00319.36
8.2.110.0070.00422.20
8.2.100.0120.00019.39
8.2.90.0050.00319.27
8.2.80.0090.00017.97
8.2.70.0040.00417.63
8.2.60.0030.00518.03
8.2.50.0040.00418.07
8.2.40.0000.01118.28
8.2.30.0030.00518.13
8.2.20.0070.00017.72
8.2.10.0000.00817.82
8.2.00.0080.00017.63
8.1.280.0090.00925.92
8.1.270.0080.00021.98
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0060.00323.86
8.1.230.0070.00419.07
8.1.220.0000.00817.77
8.1.210.0040.00418.77
8.1.200.0060.00317.36
8.1.190.0080.00017.53
8.1.180.0060.00320.54
8.1.170.0000.00918.63
8.1.160.0050.00222.14
8.1.150.0090.00318.66
8.1.140.0040.00417.34
8.1.130.0000.00717.81
8.1.120.0040.00417.44
8.1.110.0040.00417.49
8.1.100.0050.00217.53
8.1.90.0030.00317.36
8.1.80.0000.00717.46
8.1.70.0050.00217.41
8.1.60.0080.00017.66
8.1.50.0040.00417.55
8.1.40.0000.00817.43
8.1.30.0000.00817.61
8.1.20.0000.00817.63
8.1.10.0040.00417.43
8.1.00.0030.00517.49
8.0.300.0030.00318.77
8.0.290.0040.00417.05
8.0.280.0050.00218.45
8.0.270.0070.00017.18
8.0.260.0030.00316.83
8.0.250.0000.00716.96
8.0.240.0080.00016.87
8.0.230.0000.00716.96
8.0.220.0000.00716.85
8.0.210.0030.00316.78
8.0.200.0030.00316.98
8.0.190.0040.00416.88
8.0.180.0000.00716.90
8.0.170.0080.00016.90
8.0.160.0070.00016.97
8.0.150.0070.00016.90
8.0.140.0050.00316.87
8.0.130.0040.00413.31
8.0.120.0080.00016.84
8.0.110.0050.00316.80
8.0.100.0040.00416.96
8.0.90.0040.00416.79
8.0.80.0080.00816.87
8.0.70.0080.00016.89
8.0.60.0040.00416.76
8.0.50.0000.00716.91
8.0.30.0100.00816.98
8.0.20.0070.01417.40
8.0.10.0000.00716.93
8.0.00.0110.01116.83
7.4.330.0000.00515.00
7.4.320.0060.00016.57
7.4.300.0000.00616.59
7.4.290.0000.00716.41
7.4.280.0000.00616.47
7.4.270.0080.00016.46
7.4.260.0040.00416.56
7.4.250.0030.00516.49
7.4.240.0020.00516.54
7.4.230.0000.00616.38
7.4.220.0070.01016.56
7.4.210.0090.00516.52
7.4.200.0040.00416.45
7.4.190.0040.00416.55
7.4.160.0080.00816.46
7.4.150.0110.00617.40
7.4.140.0060.01317.86
7.4.130.0100.00816.47
7.4.120.0090.01016.57
7.4.110.0140.00316.42
7.4.100.0090.00916.53
7.4.90.0140.00416.58
7.4.80.0110.01119.39
7.4.70.0150.00316.41
7.4.60.0100.01016.48
7.4.50.0030.00516.50
7.4.40.0110.00322.77
7.4.30.0160.00616.63
7.4.10.0040.01514.96
7.4.00.0060.00914.97
7.3.330.0030.00313.16
7.3.320.0000.00513.06
7.3.310.0030.00316.48
7.3.300.0030.00316.30
7.3.290.0060.00916.37
7.3.280.0060.00916.34
7.3.270.0160.00317.40
7.3.260.0070.01016.68
7.3.250.0080.00916.47
7.3.240.0130.00616.29
7.3.230.0090.00916.56
7.3.210.0110.00616.25
7.3.200.0140.00719.39
7.3.190.0060.00916.47
7.3.180.0120.00316.24
7.3.170.0060.01516.39
7.3.160.0000.01816.48
7.3.130.0060.01214.72
7.3.120.0060.00814.98
7.3.110.0070.01014.60
7.3.100.0170.00015.06
7.3.90.0060.00914.69
7.3.80.0080.00414.59
7.3.70.0070.00714.82
7.3.60.0040.01114.62
7.3.50.0030.00914.76
7.3.40.0110.00414.96
7.3.30.0060.00614.94
7.3.20.0070.00716.80
7.3.10.0020.01116.32
7.3.00.0040.00916.30
7.2.330.0170.00616.69
7.2.320.0090.00816.59
7.2.310.0060.01216.77
7.2.300.0060.01216.76
7.2.290.0030.01316.70
7.2.260.0070.01015.01
7.2.250.0030.01414.99
7.2.240.0090.00615.17
7.2.230.0060.01315.25
7.2.220.0090.00914.94
7.2.210.0000.01515.18
7.2.200.0090.00614.91
7.2.190.0040.00814.75
7.2.180.0090.00615.07
7.2.170.0030.01015.03
7.2.160.0060.01015.23
7.2.150.0080.00417.03
7.2.140.0080.00416.89
7.2.130.0090.00516.93
7.2.120.0100.00316.91
7.2.110.0050.00916.77
7.2.100.0070.00716.77
7.2.90.0050.00516.81
7.2.80.0090.00716.77
7.2.70.0050.01116.88
7.2.60.0060.00616.90
7.2.50.0110.00616.75
7.2.40.0070.01016.80
7.2.30.0100.00517.02
7.2.20.0060.00716.76
7.2.10.0070.00716.77
7.2.00.0060.00516.83
7.1.330.0090.00615.80
7.1.320.0090.00615.94
7.1.310.0040.01115.87
7.1.300.0030.01315.71
7.1.290.0040.01115.89
7.1.280.0030.00615.54
7.1.270.0030.01015.74
7.1.260.0060.00915.43
7.1.250.0080.00515.83
7.1.240.0070.00715.71
7.1.230.0000.01415.88
7.1.220.0060.00315.93
7.1.210.0040.00815.85
7.1.200.0070.00315.64
7.1.190.0000.01315.77
7.1.180.0070.00415.77
7.1.170.0050.00515.77
7.1.160.0040.01115.87
7.1.150.0000.01515.77
7.1.140.0060.00915.73
7.1.130.0030.01015.63
7.1.120.0050.00515.52
7.1.110.0090.00615.72
7.1.100.0070.00917.08
7.1.90.0040.01115.65
7.1.80.0070.00715.71
7.1.70.0030.00616.47
7.1.60.0030.01217.85
7.1.50.0080.00816.42
7.1.40.0030.01415.41
7.1.30.0070.01015.75
7.1.20.0070.00715.71
7.1.10.0000.01015.71
7.1.00.0050.04219.09
7.0.330.0070.00315.64
7.0.320.0000.00915.49
7.0.310.0060.01015.53
7.0.300.0100.00715.50
7.0.290.0030.00715.38
7.0.280.0060.00615.33
7.0.270.0030.00815.39
7.0.260.0030.00915.40
7.0.250.0080.00015.52
7.0.240.0030.01015.39
7.0.230.0090.00015.31
7.0.220.0000.01315.43
7.0.210.0000.01015.41
7.0.200.0020.00716.04
7.0.190.0120.00415.11
7.0.180.0060.00915.16
7.0.170.0100.00715.25
7.0.160.0070.00415.51
7.0.150.0060.00615.52
7.0.140.0090.03618.81
7.0.130.0000.00815.46
7.0.120.0030.01015.49
7.0.110.0030.01015.11
7.0.100.0070.00715.38
7.0.90.0000.00815.34
7.0.80.0000.01315.55
7.0.70.0060.01215.48
7.0.60.0050.02517.79
7.0.50.0050.03516.68
7.0.40.0060.02516.83
7.0.30.0250.04316.92
7.0.20.0120.05116.66
7.0.10.0030.02816.79
7.0.00.0060.02016.83
5.6.400.0070.00714.55
5.6.390.0030.00614.36
5.6.380.0040.00814.23
5.6.370.0030.01014.59
5.6.360.0060.00614.41
5.6.350.0030.00914.45
5.6.340.0070.00714.52
5.6.330.0040.00714.73
5.6.320.0080.00414.44
5.6.310.0000.01014.53
5.6.300.0060.01014.27
5.6.290.0050.00814.30
5.6.280.0000.04317.83
5.6.270.0040.00414.42
5.6.260.0060.00614.28
5.6.250.0110.00414.37
5.6.240.0120.00314.05
5.6.230.0060.00914.41
5.6.220.0060.00314.20
5.6.210.0180.03817.41
5.6.200.0130.02516.13
5.6.190.0020.05017.47
5.6.180.0240.03417.46
5.6.170.0230.02817.56
5.6.160.0130.04017.44
5.6.150.0090.03816.09
5.6.140.0070.04316.15
5.6.130.0050.04216.20
5.6.120.0050.02317.65
5.6.110.0110.03917.65
5.6.100.0170.03417.72
5.6.90.0020.03817.61
5.6.80.0000.03217.23
5.6.70.0030.01014.32
5.6.60.0100.00314.20
5.6.50.0030.00714.39
5.6.40.0040.01114.34
5.6.30.0050.00814.11
5.6.20.0040.00714.07
5.6.10.0030.01014.09
5.6.00.0040.01114.41
5.5.380.0070.00314.21
5.5.370.0000.01513.89
5.5.360.0070.00714.50
5.5.350.0100.04217.28
5.5.340.0110.03916.12
5.5.330.0060.04317.24
5.5.320.0190.04317.18
5.5.310.0150.04217.17
5.5.300.0020.02816.18
5.5.290.0080.04316.14
5.5.280.0020.02517.55
5.5.270.0080.02817.43
5.5.260.0040.02317.73
5.5.250.0100.03817.50
5.5.240.1910.02516.97
5.5.230.0040.01114.41
5.5.220.0030.01014.24
5.5.210.0040.00714.13
5.5.200.0040.01114.41
5.5.190.0070.00714.33
5.5.180.0000.01014.02
5.5.170.0030.00914.13
5.5.160.0030.01214.13
5.5.150.0030.01214.34
5.5.140.0030.01014.09
5.5.130.0070.00714.05
5.5.120.0060.00314.16
5.5.110.0090.00013.99
5.5.100.0000.01014.27
5.5.90.0100.00314.19
5.5.80.0000.01714.13
5.5.70.0140.00014.44
5.5.60.0070.00714.28
5.5.50.0000.01513.96
5.5.40.0040.00714.29
5.5.30.0090.00414.25
5.5.20.0030.00614.15
5.5.10.0000.01113.98
5.5.00.0030.01314.20
5.4.450.0460.02715.19
5.4.440.0080.03515.14
5.4.430.0070.02815.23
5.4.420.0030.04315.24
5.4.410.0110.02514.96
5.4.400.0030.03114.63
5.4.390.0070.02914.86
5.4.380.0090.02714.68
5.4.370.0050.03214.78
5.4.360.0280.02814.76
5.4.350.0080.03014.93
5.4.340.0130.02914.79
5.4.330.0040.00710.87
5.4.320.0050.02111.55
5.4.310.0060.02311.63
5.4.300.0020.02511.58
5.4.290.0090.01911.64
5.4.280.0060.02511.78
5.4.270.0050.02211.64
5.4.260.0130.02514.95
5.4.250.0070.04114.99
5.4.240.0050.03414.84
5.4.230.0090.02814.72
5.4.220.0020.04215.08
5.4.210.0050.04014.99
5.4.200.0100.02515.01
5.4.190.0080.03314.82
5.4.180.0050.03214.76
5.4.170.0050.03314.76
5.4.160.0080.02714.86
5.4.150.0080.02714.88
5.4.140.0030.03013.62
5.4.130.0050.03213.61
5.4.120.0080.03313.66
5.4.110.0120.03513.70
5.4.100.0030.03413.72
5.4.90.0060.02813.65
5.4.80.0030.03413.69
5.4.70.0100.03313.76
5.4.60.0060.02713.51
5.4.50.0040.03513.63
5.4.40.0030.03913.67
5.4.30.0030.03913.59
5.4.20.0000.03513.80
5.4.10.0030.03013.68
5.4.00.0080.02613.46
5.3.290.0060.02211.67
5.3.280.0100.02912.47
5.3.270.0080.03712.40
5.3.260.0130.03112.48
5.3.250.0090.02612.43
5.3.240.0060.03312.43
5.3.230.0030.03512.46
5.3.220.0030.04212.30
5.3.210.0070.03112.46
5.3.200.0100.03112.37
5.3.190.0000.03212.56
5.3.180.0080.02612.46
5.3.170.0060.04012.53
5.3.160.0080.03012.54
5.3.150.0030.03212.53
5.3.140.0080.03612.51
5.3.130.0080.02812.57
5.3.120.0050.04112.49
5.3.110.0020.03612.49
5.3.100.0050.03912.21
5.3.90.0070.02812.18
5.3.80.0070.02812.12
5.3.70.0050.03212.21
5.3.60.0030.03112.19
5.3.50.0030.03812.12
5.3.40.0110.03112.13
5.3.30.0040.03712.19
5.3.20.0050.03811.91
5.3.10.0030.03111.91
5.3.00.0060.02712.06
5.2.170.0100.03711.29
5.2.160.0030.04011.07
5.2.150.0070.05311.14
5.2.140.0070.04011.03
5.2.130.0200.03710.98
5.2.120.0070.05711.25
5.2.110.0130.04711.01
5.2.100.0000.04311.11
5.2.90.0070.05311.11
5.2.80.0070.04711.02
5.2.70.0000.06011.10
5.2.60.0130.05310.98
5.2.50.0000.06311.13
5.2.40.0070.05010.93
5.2.30.0030.04311.07
5.2.20.0100.04710.95
5.2.10.0070.05310.93
5.2.00.0000.04710.68
5.1.60.0070.0439.91
5.1.50.0130.04310.18
5.1.40.0000.04710.03
5.1.30.0070.05010.39
5.1.20.0030.03710.42
5.1.10.0100.04010.05
5.1.00.0070.05010.11
5.0.50.0030.0308.52
5.0.40.0030.0408.60
5.0.30.0030.0578.41
5.0.20.0070.0308.02
5.0.10.0070.0238.00
5.0.00.0070.0538.20
4.4.90.0030.0307.21
4.4.80.0000.0237.21
4.4.70.0000.0307.21
4.4.60.0000.0237.21
4.4.50.0070.0237.21
4.4.40.0000.0437.21
4.4.30.0030.0237.21
4.4.20.0100.0207.21
4.4.10.0030.0277.21
4.4.00.0070.0407.21
4.3.110.0000.0277.21
4.3.100.0030.0277.21
4.3.90.0000.0277.21
4.3.80.0000.0407.21
4.3.70.0030.0277.21
4.3.60.0030.0237.21
4.3.50.0070.0237.21
4.3.40.0030.0377.21
4.3.30.0000.0237.21
4.3.20.0000.0277.21
4.3.10.0030.0237.21
4.3.00.0100.0236.77

preferences:
38.99 ms | 401 KiB | 5 Q