3v4l.org

run code in 300+ PHP versions simultaneously
<?php $Seen = "µ4~456456446µ"; echo print_r($Seen)."<br/>"; $Seen = explode("µµ", mb_substr($Seen, 1, -1, "UTF-8")); echo "<pre>".print_r($Seen, true)."</pre>"; foreach($Seen as &$Entr) { echo "<pre>".print_r($Entr, true)."</pre>"; $Temp = explode("~", $Entr); echo "<pre>".print_r($Temp, true)."</pre>"; $Entr = array('UserID' => intval($Temp[0]), 'Timestamp' => intval($Temp[1])); echo "<pre>".print_r($Entr, true)."</pre>"; } echo "<pre>".print_r($Seen, true)."</pre>";

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.0140.00318.55
8.3.50.0110.00921.91
8.3.40.0140.00318.64
8.3.30.0110.00419.25
8.3.20.0080.00020.38
8.3.10.0080.00020.70
8.3.00.0050.00317.50
8.2.180.0090.00616.38
8.2.170.0080.00822.96
8.2.160.0150.00018.92
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00422.11
8.2.110.0070.00320.27
8.2.100.0070.00418.03
8.2.90.0040.00419.21
8.2.80.0040.00417.97
8.2.70.0030.00517.63
8.2.60.0060.00318.05
8.2.50.0090.00018.07
8.2.40.0040.00418.07
8.2.30.0050.00319.26
8.2.20.0040.00417.71
8.2.10.0020.00518.20
8.2.00.0020.00517.76
8.1.280.0070.01125.92
8.1.270.0040.00423.83
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0080.00022.05
8.1.230.0070.00419.04
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0000.00817.35
8.1.190.0040.00417.35
8.1.180.0030.00518.10
8.1.170.0030.00618.64
8.1.160.0000.00721.94
8.1.150.0050.00318.88
8.1.140.0000.00817.39
8.1.130.0040.00417.85
8.1.120.0000.00717.53
8.1.110.0000.00817.52
8.1.100.0050.00217.54
8.1.90.0050.00217.38
8.1.80.0040.00417.48
8.1.70.0000.00717.48
8.1.60.0040.00417.70
8.1.50.0000.00817.63
8.1.40.0000.00717.60
8.1.30.0050.00317.57
8.1.20.0050.00217.72
8.1.10.0040.00417.55
8.1.00.0030.00517.55
8.0.300.0060.00318.77
8.0.290.0040.00416.63
8.0.280.0030.00318.52
8.0.270.0070.00017.39
8.0.260.0060.00017.29
8.0.250.0030.00517.05
8.0.240.0030.00317.11
8.0.230.0000.00817.05
8.0.220.0000.00716.86
8.0.210.0030.00316.84
8.0.200.0030.00316.97
8.0.190.0020.00516.88
8.0.180.0030.00516.90
8.0.170.0080.00016.91
8.0.160.0030.00316.89
8.0.150.0070.00016.77
8.0.140.0040.00416.93
8.0.130.0050.00013.33
8.0.120.0050.00317.00
8.0.110.0040.00417.00
8.0.100.0030.00316.83
8.0.90.0040.00416.94
8.0.80.0090.00616.96
8.0.70.0000.00817.01
8.0.60.0000.00717.04
8.0.50.0080.00017.04
8.0.30.0120.01016.95
8.0.20.0110.00717.40
8.0.10.0070.00016.92
8.0.00.0060.01216.84
7.4.330.0030.00315.01
7.4.320.0060.00016.49
7.4.300.0000.00616.63
7.4.290.0040.00416.61
7.4.280.0040.00416.47
7.4.270.0000.00716.63
7.4.260.0070.00016.51
7.4.250.0000.00716.55
7.4.240.0030.00416.55
7.4.230.0030.00316.36
7.4.220.0080.01216.63
7.4.210.0000.01516.71
7.4.200.0030.00316.60
7.4.160.0090.00616.55
7.4.150.0130.00517.40
7.4.140.0110.00717.86
7.4.130.0030.01416.47
7.4.120.0060.01216.48
7.4.110.0130.00416.58
7.4.100.0130.00416.62
7.4.90.0060.01216.61
7.4.80.0090.00619.03
7.4.70.0110.01116.53
7.4.60.0060.01016.50
7.4.50.0050.00316.43
7.4.40.0070.01016.43
7.4.30.0070.01016.67
7.4.00.0050.01014.89
7.3.330.0040.00413.28
7.3.320.0000.00513.20
7.3.310.0030.00316.20
7.3.300.0080.00016.30
7.3.290.0140.00616.32
7.3.280.0080.01016.35
7.3.270.0130.01017.40
7.3.260.0160.01016.61
7.3.250.0080.01016.50
7.3.240.0110.00816.57
7.3.230.0060.01216.59
7.3.210.0120.00416.56
7.3.200.0140.00519.39
7.3.190.0090.00916.37
7.3.180.0030.01216.58
7.3.170.0060.01216.58
7.3.160.0150.00016.51
7.3.120.0140.00315.06
7.3.110.0070.01114.78
7.3.100.0090.00614.63
7.3.90.0080.00714.64
7.3.80.0000.01514.84
7.3.70.0100.00714.89
7.3.60.0100.00314.94
7.3.50.0000.01614.89
7.3.40.0030.01014.83
7.3.30.0000.01514.77
7.3.20.0070.00316.59
7.3.10.0000.01116.65
7.3.00.0140.00316.36
7.2.330.0080.00816.62
7.2.320.0070.01016.46
7.2.310.0140.00316.78
7.2.300.0090.00916.75
7.2.290.0080.00816.85
7.2.250.0030.01215.07
7.2.240.0030.01715.14
7.2.230.0100.01014.98
7.2.220.0060.00615.18
7.2.210.0070.00715.28
7.2.200.0090.00315.25
7.2.190.0090.00615.11
7.2.180.0030.01314.85
7.2.170.0080.00414.98
7.2.00.0100.00619.64
7.1.330.0060.00915.79
7.1.320.0000.01415.85
7.1.310.0070.01115.63
7.1.300.0090.00915.51
7.1.290.0030.00715.94
7.1.280.0000.01415.91
7.1.270.0040.01115.80
7.1.260.0040.00915.89
7.1.100.0060.00618.13
7.1.70.0000.00917.29
7.1.60.0110.01419.32
7.1.50.0060.01917.02
7.1.00.0000.08022.38
7.0.200.0000.00916.77
7.0.140.0000.07021.99
7.0.60.0100.08319.91
7.0.50.0030.05717.98
7.0.40.0070.04320.18
7.0.30.0330.06720.30
7.0.20.0270.06720.24
7.0.10.0200.04720.10
7.0.00.0070.04020.18
5.6.280.0030.07321.13
5.6.210.0030.06320.75
5.6.200.0000.08318.17
5.6.190.0000.04720.64
5.6.180.0500.04720.58
5.6.170.0170.05020.62
5.6.160.0130.07320.39
5.6.150.0030.08318.29
5.6.140.0100.07318.18
5.6.130.0070.08718.17
5.6.120.0030.04020.94
5.6.110.0100.04020.98
5.6.100.0030.05020.93
5.6.90.0100.08321.02
5.6.80.0130.07320.40
5.5.350.0170.04320.35
5.5.340.0100.07317.98
5.5.330.0030.04020.27
5.5.320.0330.07020.32
5.5.310.0270.05720.30
5.5.300.0130.07717.94
5.5.290.0030.04017.99
5.5.280.0100.08020.97
5.5.270.0100.05020.88
5.5.260.0070.06720.88
5.5.250.0130.06320.64
5.5.240.0130.08020.18
5.4.450.0400.03719.54
5.4.440.0700.05719.42
5.4.430.0730.05719.58
5.4.420.0670.00019.53
5.4.410.0630.00019.11
5.4.400.0630.00019.38
5.4.390.0630.00019.02
5.4.380.0300.07318.78
5.4.370.0430.04718.76
5.4.360.0270.06018.50
5.4.350.0330.06718.57
5.4.340.0300.05318.73
5.4.320.0070.04512.49
5.4.310.0040.04012.49
5.4.300.0050.03712.49
5.4.290.0060.03812.49
5.4.280.0040.03912.39
5.4.270.0090.03312.39
5.4.260.0060.03612.38
5.4.250.0060.03612.39
5.4.240.0070.03412.39
5.4.230.0050.03712.38
5.4.220.0100.03912.38
5.4.210.0080.03512.38
5.4.200.0050.03712.38
5.4.190.0080.04012.38
5.4.180.0060.03612.38
5.4.170.0050.03512.38
5.4.160.0070.03312.38
5.4.150.0070.03412.38
5.4.140.0040.03812.06
5.4.130.0040.03612.05
5.4.120.0080.04312.00
5.4.110.0060.04112.00
5.4.100.0050.03612.00
5.4.90.0080.03512.00
5.4.80.0070.03612.00
5.4.70.0090.03212.00
5.4.60.0090.03512.00
5.4.50.0080.03412.00
5.4.40.0060.03411.99
5.4.30.0080.03311.98
5.4.20.0030.03811.99
5.4.10.0010.03911.98
5.4.00.0050.03811.48
5.3.290.0060.04012.80
5.3.280.0060.03712.71
5.3.270.0060.04012.72
5.3.260.0040.04112.72
5.3.250.0070.04212.72
5.3.240.0100.03512.72
5.3.230.0050.04012.71
5.3.220.0070.03712.68
5.3.210.0030.04012.68
5.3.200.0060.04212.68
5.3.190.0070.03812.68
5.3.180.0080.03612.67
5.3.170.0080.03612.67
5.3.160.0030.04012.67
5.3.150.0080.03812.67
5.3.140.0050.04012.66
5.3.130.0050.04212.65
5.3.120.0050.04112.66
5.3.110.0070.03812.65
5.3.100.0060.03812.11
5.3.90.0070.04212.10
5.3.80.0040.03612.09
5.3.70.0050.03612.09
5.3.60.0070.04412.07
5.3.50.0060.04212.02
5.3.40.0050.04112.02
5.3.30.0030.03711.98
5.3.20.0040.03611.76
5.3.10.0060.03311.73
5.3.00.0060.04211.71
5.2.170.0030.0399.23
5.2.160.0050.0359.23
5.2.150.0070.0289.23
5.2.140.0030.0319.22
5.2.130.0040.0289.19
5.2.120.0040.0289.19
5.2.110.0020.0319.18
5.2.100.0050.0289.18
5.2.90.0070.0329.18
5.2.80.0070.0279.18
5.2.70.0040.0319.18
5.2.60.0070.0329.13
5.2.50.0040.0309.10
5.2.40.0070.0289.07
5.2.30.0050.0299.05
5.2.20.0040.0289.04
5.2.10.0050.0298.95
5.2.00.0030.0308.81
5.1.60.0030.0248.10
5.1.50.0040.0258.09
5.1.40.0060.0228.07
5.1.30.0030.0268.43
5.1.20.0130.0248.45
5.1.10.0090.0258.17
5.1.00.0060.0248.17
5.0.50.0040.0246.65
5.0.40.0030.0196.50
5.0.30.0050.0356.32
5.0.20.0020.0246.29
5.0.10.0030.0206.27
5.0.00.0060.0316.27
4.4.90.0040.0144.78
4.4.80.0010.0164.75
4.4.70.0050.0134.76
4.4.60.0040.0144.75
4.4.50.0030.0154.77
4.4.40.0020.0264.71
4.4.30.0020.0164.76
4.4.20.0040.0194.84
4.4.10.0030.0144.85
4.4.00.0060.0214.76
4.3.110.0010.0174.67
4.3.100.0040.0194.66
4.3.90.0020.0144.63
4.3.80.0030.0234.58
4.3.70.0030.0194.63
4.3.60.0010.0164.63
4.3.50.0040.0144.62
4.3.40.0040.0244.54
4.3.30.0010.0163.29
4.3.20.0020.0153.27
4.3.10.0010.0163.22
4.3.00.0170.01316.39

preferences:
42.78 ms | 401 KiB | 5 Q