3v4l.org

run code in 300+ PHP versions simultaneously
<?php $timestart = microtime( true ); $string = "This is an?example string"; for( $i=0; $i<=100; $i++ ) { $result = explode( '?', $string ); $result = $result[0]; } $timeend = microtime( true ); $timetotal = $timeend - $timestart; $r = number_format( $timetotal, 5 ); echo $r; echo $result;

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)
7.2.00.0060.00619.56
7.1.70.0030.00317.25
7.1.60.0100.01019.70
7.1.50.0100.01016.85
7.1.00.0070.07022.54
7.0.200.0630.00614.72
7.0.140.0030.07722.09
7.0.80.0630.07720.15
7.0.70.0200.08719.86
7.0.60.0470.05719.86
7.0.50.0200.06320.25
7.0.40.0070.07720.04
7.0.30.0100.07720.13
7.0.20.0100.08020.10
7.0.10.0070.08020.03
7.0.00.0100.08020.02
5.6.280.0100.06720.86
5.6.230.0130.07020.75
5.6.220.0130.06320.58
5.6.210.0070.08020.65
5.6.200.0070.08721.02
5.6.190.0070.08721.16
5.6.180.0130.07721.05
5.6.170.0170.05021.16
5.6.160.0130.08021.06
5.6.150.0170.08021.00
5.6.140.0030.07321.10
5.6.130.0030.09021.13
5.6.120.0100.07721.13
5.6.110.0230.05721.02
5.6.100.0230.06321.15
5.6.90.0170.07321.11
5.6.80.0070.07720.32
5.6.70.0100.07720.48
5.6.60.0130.08020.37
5.6.50.0130.07320.30
5.6.40.0030.07720.39
5.6.30.0070.04020.53
5.6.20.0070.04020.41
5.6.10.0070.05720.35
5.6.00.0100.08020.41
5.5.370.0200.05320.54
5.5.360.0130.07320.36
5.5.350.0030.08020.37
5.5.340.0170.06720.92
5.5.330.0070.07720.91
5.5.320.0100.08020.88
5.5.310.0070.08320.82
5.5.300.0130.03720.76
5.5.290.0030.04720.64
5.5.280.0170.07720.72
5.5.270.0030.05320.79
5.5.260.0130.07020.85
5.5.250.0070.08020.68
5.5.240.0100.05020.13
5.5.230.0070.07720.21
5.5.220.0100.05720.28
5.5.210.0030.08320.28
5.5.200.0070.07720.08
5.5.190.0100.07320.24
5.5.180.0000.04720.22
5.5.160.0070.07720.23
5.5.150.0100.07320.25
5.5.140.0070.04720.14
5.5.130.0030.08320.25
5.5.120.0170.06320.17
5.5.110.0030.06320.10
5.5.100.0030.08020.11
5.5.90.0100.07720.14
5.5.80.0070.05720.12
5.5.70.0070.07020.05
5.5.60.0070.05320.05
5.5.50.0100.07720.04
5.5.40.0070.06020.06
5.5.30.0070.04719.91
5.5.20.0130.05320.05
5.5.10.0100.04720.02
5.5.00.0070.08019.99
5.4.450.0000.08719.33
5.4.440.0130.07319.44
5.4.430.0030.08319.29
5.4.420.0170.06319.33
5.4.410.0030.07719.40
5.4.400.0130.05718.94
5.4.390.0030.08318.85
5.4.380.0070.07319.05
5.4.370.0070.07318.98
5.4.360.0070.07318.98
5.4.350.0130.08019.07
5.4.340.0070.05019.11
5.4.320.0100.06719.06
5.4.310.0100.07719.11
5.4.300.0030.05318.96
5.4.290.0000.08318.96
5.4.280.0100.07319.13
5.4.270.0130.06018.87
5.4.260.0130.05318.89
5.4.250.0000.08019.14
5.4.240.0030.08018.96
5.4.230.0070.05719.11
5.4.220.0100.08018.97
5.4.210.0070.04018.86
5.4.200.0070.07319.02
5.4.190.0070.06718.99
5.4.180.0000.06018.86
5.4.170.0100.06718.95
5.4.160.0100.07319.00
5.4.150.0000.04318.94
5.4.140.0030.04016.41
5.4.130.0070.06016.36
5.4.120.0070.04316.12
5.4.110.0030.03016.45
5.4.100.0030.03716.42
5.4.90.0000.05316.29
5.4.80.0070.07716.33
5.4.70.0100.07716.28
5.4.60.0030.07016.29
5.4.50.0070.05016.36
5.4.40.0070.07316.45
5.4.30.0130.05716.34
5.4.20.0070.04716.37
5.4.10.0070.05716.24
5.4.00.0070.07315.83
5.3.290.0100.06714.72
5.3.280.0030.07714.58
5.3.270.0030.07314.59
5.3.260.0170.04314.55
5.3.250.0100.04314.52
5.3.240.0070.03714.54
5.3.230.0070.07714.53
5.3.220.0030.03314.52
5.3.210.0100.06714.49
5.3.200.0030.03314.51
5.3.190.0070.05314.52
5.3.180.0070.04314.49
5.3.170.0030.08014.53
5.3.160.0100.07014.49
5.3.150.0030.08014.61
5.3.140.0030.08014.60
5.3.130.0100.07714.53
5.3.120.0000.06014.51
5.3.110.0130.05014.46
5.3.100.0070.07313.95
5.3.90.0200.05013.98
5.3.80.0000.04314.07
5.3.70.0070.07013.83
5.3.60.0070.07013.95
5.3.50.0030.05313.80
5.3.40.0000.08313.93
5.3.30.0000.07713.86
5.3.20.0070.05713.64
5.3.10.0100.06713.42
5.3.00.0030.07713.64
5.2.170.0000.05011.63
5.2.160.0130.05711.63
5.2.150.0030.03711.63
5.2.140.0000.04711.63
5.2.130.0030.03011.63
5.2.120.0070.02711.63
5.2.110.0100.06011.63
5.2.100.0100.04711.63
5.2.90.0030.06011.63
5.2.80.0070.04311.63
5.2.70.0070.06311.63
5.2.60.0030.03311.63
5.2.50.0000.03311.63
5.2.40.0100.06011.63
5.2.30.0100.05011.63
5.2.20.0000.05711.63
5.2.10.0030.05311.63
5.2.00.0030.05311.63
5.1.60.0000.04311.63
5.1.50.0100.04011.63
5.1.40.0000.06011.63
5.1.30.0030.04011.63
5.1.20.0030.06311.63
5.1.10.0100.05011.63
5.1.00.0030.05711.63
5.0.50.0100.03011.63
5.0.40.0070.04011.63
5.0.30.0070.04711.63
5.0.20.0030.04011.63
5.0.10.0000.03711.63
5.0.00.0070.06011.63
4.4.90.0030.03311.63
4.4.80.0030.01311.63
4.4.70.0030.03311.63
4.4.60.0070.03311.63
4.4.50.0070.02711.63
4.4.40.0000.06011.63
4.4.30.0030.02711.63
4.4.20.0030.03011.63
4.4.10.0000.03311.63
4.4.00.0070.04711.63
4.3.110.0030.02711.63
4.3.100.0030.02311.63
4.3.90.0030.03311.63
4.3.80.0070.03311.63
4.3.70.0000.03711.63
4.3.60.0070.01711.63
4.3.50.0030.02711.63
4.3.40.0030.05011.63
4.3.30.0000.02711.63
4.3.20.0000.03311.63
4.3.10.0000.03311.63
4.3.00.0000.03311.63

preferences:
37.14 ms | 401 KiB | 5 Q