3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '[prev title="sample1" cont="sample1a" res="sample1b" mw="1"][prev title="sample2" cont="sample2a" res="sample2b" mw="2"][prev title="sample3" cont="sample3a" res="sample3b" mw="3"]'; $arr = explode('][',$str); $expected = ''; foreach($arr as $row){ $res = explode(' ',trim($row,'[]')); $expected.= '['.$res[0].' '. $res[2].' '.$res[3].' '.$res[1].' '.$res[4].']'; } echo ($expected); ?>

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.5.10.0120.00616.65
8.5.00.0080.01319.98
8.4.160.0120.01023.95
8.4.150.0030.00014.05
8.4.140.0140.00817.66
8.4.130.0140.00817.40
8.4.120.0080.01420.68
8.4.110.0040.00418.67
8.4.100.0040.00419.01
8.4.90.0130.00522.52
8.4.80.0090.01118.80
8.4.70.0080.01018.94
8.4.60.0130.00818.86
8.4.50.0110.01118.81
8.4.40.0120.00819.36
8.4.30.0030.01619.20
8.4.20.0140.00720.57
8.4.10.0070.01317.57
8.3.280.0030.00014.05
8.3.270.0150.00516.79
8.3.260.0060.00316.71
8.3.250.0050.00418.78
8.3.240.0060.00716.61
8.3.230.0080.00816.66
8.3.220.0080.01018.85
8.3.210.0110.00816.59
8.3.200.0030.00516.72
8.3.190.0110.00817.10
8.3.180.0100.00818.99
8.3.170.0130.00716.44
8.3.160.0140.00417.02
8.3.150.0110.00719.23
8.3.140.0040.01120.75
8.3.130.0030.00618.59
8.3.120.0140.00318.84
8.3.110.0100.00020.94
8.3.100.0000.00824.06
8.3.90.0050.00326.77
8.3.80.0090.00016.63
8.3.70.0140.00416.50
8.3.60.0030.01318.30
8.3.50.0050.00918.44
8.3.40.0090.00618.65
8.3.30.0070.00718.59
8.3.20.0050.00319.32
8.3.10.0040.00423.83
8.3.00.0030.00520.80
8.2.290.0130.00618.79
8.2.280.0120.00718.73
8.2.270.0150.00318.30
8.2.260.0130.01016.59
8.2.250.0000.00818.49
8.2.240.0060.00317.07
8.2.230.0080.00022.58
8.2.220.0060.00337.54
8.2.210.0050.00326.77
8.2.200.0060.00316.50
8.2.190.0060.00916.58
8.2.180.0090.00617.92
8.2.170.0060.00922.96
8.2.160.0070.00720.32
8.2.150.0000.00824.18
8.2.140.0030.00624.66
8.2.130.0080.00026.16
8.2.120.0100.00720.96
8.2.110.0030.00619.16
8.2.100.0070.00417.78
8.2.90.0040.00419.26
8.2.80.0000.00817.97
8.2.70.0040.00418.16
8.2.60.0030.00618.22
8.2.50.0000.00718.10
8.2.40.0030.00619.34
8.2.30.0070.00319.20
8.2.20.0000.00718.21
8.2.10.0070.00018.07
8.2.00.0040.00419.43
8.1.330.0090.00818.45
8.1.320.0070.00316.50
8.1.310.0040.00418.18
8.1.300.0080.00818.43
8.1.290.0060.00330.84
8.1.280.0120.00325.92
8.1.270.0050.00322.18
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0070.00323.68
8.1.230.0040.00820.88
8.1.220.0030.00617.74
8.1.210.0000.00818.77
8.1.200.0040.00417.10
8.1.190.0090.00017.23
8.1.180.0080.00018.10
8.1.170.0080.00018.49
8.1.160.0070.00018.89
8.1.150.0050.00218.88
8.1.140.0050.00322.08
8.1.130.0000.00720.22
8.1.120.0040.00417.41
8.1.110.0040.00417.48
8.1.100.0070.00017.39
8.1.90.0070.00317.31
8.1.80.0070.00017.43
8.1.70.0000.00717.47
8.1.60.0000.00917.50
8.1.50.0000.00817.53
8.1.40.0040.00417.52
8.1.30.0040.00417.50
8.1.20.0030.00617.67
8.1.10.0000.00717.52
8.1.00.0040.00417.52
8.0.300.0070.00318.77
8.0.290.0070.00016.75
8.0.280.0000.00718.47
8.0.270.0030.00316.71
8.0.260.0030.00318.33
8.0.250.0070.00016.94
8.0.240.0000.00716.84
8.0.230.0030.00516.96
8.0.220.0070.00016.92
8.0.210.0050.00216.94
8.0.200.0030.00316.94
8.0.190.0000.00716.98
8.0.180.0030.00616.95
8.0.170.0040.00416.91
8.0.160.0050.00316.77
8.0.150.0030.00516.77
8.0.140.0090.00016.89
8.0.130.0050.00013.39
8.0.120.0040.00416.86
8.0.110.0080.00016.84
8.0.100.0040.00416.89
8.0.90.0040.00417.02
8.0.80.0090.00716.90
8.0.70.0070.00016.76
8.0.60.0040.00416.80
8.0.50.0040.00416.89
8.0.30.0150.00516.96
8.0.20.0070.01617.40
8.0.10.0050.00216.85
8.0.00.0110.01016.91
7.4.330.0060.00015.55
7.4.320.0060.00016.53
7.4.300.0040.00416.62
7.4.290.0000.00716.56
7.4.280.0050.00316.61
7.4.270.0000.00716.44
7.4.260.0070.00016.52
7.4.250.0000.00716.60
7.4.240.0000.00716.44
7.4.230.0050.00316.61
7.4.220.0080.00016.62
7.4.210.0060.01216.65
7.4.200.0030.00316.35
7.4.160.0050.01416.41
7.4.140.0100.01017.86
7.4.130.0100.01016.67
7.4.120.0120.00916.55
7.4.110.0100.00716.31
7.4.100.0070.01016.50
7.4.90.0090.00916.67
7.4.80.0110.00719.39
7.4.70.0120.00416.43
7.4.60.0100.00716.46
7.4.50.0030.01316.25
7.4.40.0090.00616.52
7.4.00.0060.01215.03
7.3.330.0050.00013.27
7.3.320.0030.00313.24
7.3.310.0070.00016.27
7.3.300.0070.00016.40
7.3.290.0040.00416.13
7.3.280.0110.00416.21
7.3.260.0110.00816.44
7.3.240.0100.01016.44
7.3.230.0120.00416.37
7.3.210.0130.01016.55
7.3.200.0090.01216.50
7.3.190.0070.01016.75
7.3.180.0100.00916.38
7.3.170.0030.01516.54
7.3.160.0130.01016.33
7.3.120.0070.01014.98
7.3.110.0030.01714.82
7.3.100.0130.00614.93
7.3.90.0080.00815.18
7.3.80.0080.00714.99
7.3.70.0080.00314.66
7.3.60.0100.00714.85
7.3.50.0100.00314.76
7.3.40.0100.00614.97
7.3.30.0030.01315.01
7.3.20.0140.00016.86
7.3.10.0000.01416.61
7.3.00.0030.00916.83
7.2.330.0100.00716.60
7.2.320.0120.00416.86
7.2.310.0100.00916.75
7.2.300.0100.01416.73
7.2.290.0100.00616.73
7.2.250.0120.00615.31
7.2.240.0120.00315.23
7.2.230.0130.00315.17
7.2.220.0150.00014.71
7.2.210.0090.00614.71
7.2.200.0070.00315.00
7.2.190.0000.01415.25
7.2.180.0090.00615.02
7.2.170.0030.00715.21
7.2.120.0000.01316.54
7.2.110.0060.00816.76
7.2.100.0110.00416.54
7.2.90.0110.00416.47
7.2.80.0100.00316.38
7.2.70.0110.00416.96
7.2.60.0080.00816.71
7.2.50.0100.00716.81
7.2.40.0080.00816.79
7.2.30.0050.01117.00
7.2.20.0030.01216.73
7.2.10.0110.00616.70
7.2.00.0060.01216.81
7.1.330.0030.01015.91
7.1.320.0030.01015.70
7.1.310.0000.01015.91
7.1.300.0040.01115.43
7.1.290.0120.00315.61
7.1.280.0000.01415.88
7.1.270.0090.00615.80
7.1.260.0070.00315.96
7.1.240.0130.00015.61
7.1.230.0090.00315.65
7.1.220.0090.00615.47
7.1.210.0090.00315.73
7.1.200.0060.00915.59
7.1.190.0040.01315.77
7.1.180.0070.01015.45
7.1.170.0100.00315.86
7.1.160.0040.00815.68
7.1.150.0030.01015.67
7.1.140.0080.00815.44
7.1.130.0050.01115.73
7.1.120.0060.00615.81
7.1.110.0070.00715.75
7.1.100.0070.00915.84
7.1.90.0080.00515.73
7.1.80.0120.00315.82
7.1.70.0140.00015.71
7.1.60.0100.00315.93
7.1.50.0060.00915.56
7.1.40.0120.00015.46
7.1.30.0080.00615.88
7.1.20.0090.00315.72
7.1.10.0090.00315.74
7.1.00.0100.00315.63
5.6.380.0070.00714.31

preferences:
169.68 ms | 403 KiB | 5 Q