3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cancel_str = "2020-aaa<br>2021-bbb<br>"; $cancel_array = explode("<br>", $cancel_str); $pos = 0; $result = $cancel_array[$pos]; var_dump($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)
8.4.20.0100.01019.61
8.4.10.0030.00620.62
8.3.150.0110.00716.59
8.3.140.0070.00016.54
8.3.130.0040.01516.36
8.3.120.0030.00620.50
8.3.110.0060.00320.94
8.3.100.0040.01124.06
8.3.90.0060.00326.77
8.3.80.0030.00616.38
8.3.70.0150.00016.63
8.3.60.0080.01116.63
8.3.50.0070.01023.63
8.3.40.0040.01119.29
8.3.30.0130.00718.40
8.3.20.0040.00424.18
8.3.10.0000.00824.66
8.3.00.0080.00026.16
8.2.260.0080.00017.18
8.2.250.0030.00716.64
8.2.240.0040.00419.08
8.2.230.0000.00822.58
8.2.220.0090.00037.54
8.2.210.0000.00826.77
8.2.200.0060.00316.75
8.2.190.0140.00016.58
8.2.180.0060.01325.92
8.2.170.0090.00618.89
8.2.160.0110.00422.96
8.2.150.0030.00325.66
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0130.00620.99
8.2.110.0070.00321.13
8.2.100.0070.00417.72
8.2.90.0040.00417.63
8.2.80.0030.00818.64
8.2.70.0080.00017.63
8.2.60.0040.00417.80
8.2.50.0030.00518.07
8.2.40.0000.00817.89
8.2.30.0000.00717.99
8.2.20.0070.00017.95
8.2.10.0040.00419.29
8.2.00.0070.00019.28
8.1.310.0090.00016.80
8.1.300.0040.00415.97
8.1.290.0090.00018.88
8.1.280.0090.00625.92
8.1.270.0170.00021.99
8.1.260.0150.00026.35
8.1.250.0060.00328.09
8.1.240.0100.00023.72
8.1.230.0120.00020.97
8.1.220.0080.00018.64
8.1.210.0080.00018.77
8.1.200.0000.00817.23
8.1.190.0040.00417.23
8.1.180.0080.00018.10
8.1.170.0030.00618.36
8.1.160.0080.00018.93
8.1.150.0000.00718.81
8.1.140.0040.00418.82
8.1.130.0040.00417.44
8.1.120.0050.00317.41
8.1.110.0040.00417.34
8.1.100.0000.00817.28
8.1.90.0000.00717.39
8.1.80.0040.00417.32
8.1.70.0070.00017.34
8.1.60.0000.00917.47
8.1.50.0000.00717.44
8.1.40.0000.00817.36
8.1.30.0040.00417.60
8.1.20.0030.00617.46
8.1.10.0040.00417.48
8.1.00.0040.00417.29
8.0.300.0050.00319.85
8.0.290.0060.00316.63
8.0.280.0000.00818.41
8.0.270.0000.00717.84
8.0.260.0000.00616.70
8.0.250.0000.00716.83
8.0.240.0000.00816.89
8.0.230.0050.00316.86
8.0.220.0050.00316.82
8.0.210.0030.00316.80
8.0.200.0030.00316.86
8.0.190.0030.00616.80
8.0.180.0030.00616.84
8.0.170.0000.00916.88
8.0.160.0040.00316.69
8.0.150.0100.00016.73
8.0.140.0000.00716.80
8.0.130.0000.00613.20
8.0.120.0040.00416.79
8.0.110.0050.00316.75
8.0.100.0040.00416.79
8.0.90.0040.00416.82
8.0.80.0060.01216.82
8.0.70.0040.00416.65
8.0.60.0030.00516.85
8.0.50.0000.00916.59
8.0.30.0100.00716.99
8.0.20.0120.00916.74
8.0.10.0030.00616.81
8.0.00.0080.01016.70
7.4.330.0050.00015.55
7.4.320.0030.00316.34
7.4.300.0050.00316.41
7.4.290.0000.00616.42
7.4.280.0050.00316.51
7.4.270.0030.00316.59
7.4.260.0000.00613.21
7.4.250.0000.00716.41
7.4.240.0030.00316.50
7.4.230.0070.00016.59
7.4.220.0050.00216.58
7.4.210.0120.00516.48
7.4.200.0000.00716.33
7.4.130.0070.01016.50
7.4.120.0070.01416.45
7.4.110.0140.00316.22
7.4.100.0100.00716.55
7.4.90.0030.01316.33
7.4.80.0090.00819.39
7.4.70.0220.00016.34
7.4.60.0060.00916.45
7.4.50.0060.01116.22
7.4.40.0140.00316.25
7.4.30.0030.01316.50
7.4.20.0330.02316.22
7.4.10.0070.01016.27
7.4.00.0070.01016.40
7.3.330.0000.00716.07
7.3.320.0000.00513.12
7.3.310.0030.00516.34
7.3.300.0030.00316.21
7.3.290.0090.00816.18
7.3.280.0030.01116.24
7.3.260.0080.00816.23
7.3.240.0090.00916.26
7.3.230.0110.00716.20
7.3.210.0060.01016.12
7.3.200.0100.00716.44
7.3.190.0030.01616.26
7.3.180.0060.00916.49
7.3.170.0090.00916.23
7.3.160.0090.00916.46
7.3.150.0030.01316.47
7.3.140.0120.00616.18
7.3.130.0040.01216.23
7.3.120.0080.00816.30
7.3.110.0090.01216.42
7.3.100.0150.00316.05
7.3.90.0030.01316.32
7.3.80.0060.01016.31
7.3.70.0080.00816.18
7.3.60.0070.01016.23
7.3.50.0100.00716.18
7.3.40.0090.00916.33
7.3.30.0100.00716.10
7.3.20.0090.01516.25
7.3.10.0150.00316.30
7.3.00.0110.00616.21
7.2.330.0170.00616.73
7.2.320.0130.00316.42
7.2.310.0030.01516.41
7.2.300.0140.00616.25
7.2.290.0100.00916.66
7.2.280.0090.00916.59
7.2.270.0060.01216.25
7.2.260.0030.01316.27
7.2.250.0100.00716.33
7.2.240.0070.01016.42
7.2.230.0090.00916.42
7.2.220.0030.01416.62
7.2.210.0060.01416.23
7.2.200.0100.00716.50
7.2.190.0040.01416.50
7.2.180.0140.00316.34
7.2.170.0090.01316.44
7.2.160.0150.00916.35
7.2.150.0130.01316.44
7.2.140.0150.00316.40
7.2.130.0100.01316.59
7.2.120.0090.01516.61
7.2.110.0160.00816.52
7.2.100.0060.01216.46
7.2.90.0110.00716.36
7.2.80.0220.00016.53
7.2.70.0080.01216.41
7.2.60.0230.00316.43
7.2.50.0030.01716.16
7.2.40.0050.01616.54
7.2.30.0140.00516.60
7.2.20.0160.00616.40
7.2.10.0140.00816.34
7.2.00.0130.00416.34
7.1.330.0030.01315.51
7.1.320.0070.01015.49
7.1.310.0090.00915.63
7.1.300.0220.00415.57
7.1.290.0000.02115.50
7.1.280.0140.00315.51
7.1.270.0100.01315.77
7.1.260.0060.01015.60
7.1.250.0150.00615.37
7.1.240.0090.01115.63
7.1.230.0060.01515.48
7.1.220.0100.00715.39
7.1.210.0140.00315.37
7.1.200.0130.00615.55
7.1.190.0100.01015.53
7.1.180.0110.00815.44
7.1.170.0110.00615.36
7.1.160.0100.00615.40
7.1.150.0070.01415.30
7.1.140.0000.01515.33
7.1.130.0030.01315.50
7.1.120.0090.00915.32
7.1.110.0120.00615.37
7.1.100.0090.01215.59
7.1.90.0110.01115.59
7.1.80.0000.01615.52
7.1.70.0130.00715.69
7.1.60.0000.02115.38
7.1.50.0160.00615.49
7.1.40.0070.01415.40
7.1.30.0150.00615.52
7.1.20.0140.00715.73
7.1.10.0100.01315.38
7.1.00.0040.01315.44
7.0.330.0080.01115.12
7.0.320.0080.00815.09
7.0.310.0090.00615.14
7.0.300.0100.00715.02
7.0.290.0080.00914.98
7.0.280.0080.00915.27
7.0.270.0030.01215.30
7.0.260.0100.01015.32
7.0.250.0170.00015.02
7.0.240.0340.00915.14
7.0.230.0160.00015.28
7.0.220.0120.00315.06
7.0.210.0060.02115.09
7.0.200.0160.00314.97
7.0.190.0160.00315.10
7.0.180.0120.00315.02
7.0.170.0100.01015.32
7.0.160.0090.01215.30
7.0.150.0140.00415.30
7.0.140.0070.01414.90
7.0.130.0140.00715.00
7.0.120.0180.01415.16
7.0.110.0140.00815.16
7.0.100.0030.01215.05
7.0.90.0140.00815.09
7.0.80.0090.01315.04
7.0.70.0140.00915.02
7.0.60.0080.01315.17
7.0.50.0100.00715.27
7.0.40.0130.00315.13
7.0.30.0100.01315.07
7.0.20.0130.00315.12
7.0.10.0060.01515.04
7.0.00.0150.00315.26
5.6.400.0130.01015.96
5.6.390.0110.00815.83
5.6.380.0130.00615.88
5.6.370.0150.00615.95
5.6.360.0120.00615.59
5.6.350.0090.01315.69
5.6.340.0120.00915.65
5.6.330.0140.01016.02
5.6.320.0030.02115.82
5.6.310.0170.00315.70
5.6.300.0090.01215.99
5.6.290.0130.00315.93
5.6.280.0130.00915.72
5.6.270.0100.01016.11
5.6.260.0080.01215.66
5.6.250.0080.01216.01
5.6.240.0080.01715.78
5.6.230.0080.01215.77
5.6.220.0080.01115.79
5.6.210.0160.01016.00
5.6.200.0140.01115.80
5.6.190.0160.00315.75
5.6.180.0090.01615.81
5.6.170.0100.01015.76
5.6.160.0060.01215.90
5.6.150.0060.01315.64
5.6.140.0090.01615.77
5.6.130.0140.01015.93
5.6.120.0090.01215.90
5.6.110.0070.01415.71
5.6.100.0060.01415.63
5.6.90.0070.01115.84
5.6.80.0080.01615.66
5.6.70.0100.01415.46
5.6.60.0080.01015.81
5.6.50.0030.02015.76
5.6.40.0040.01915.70
5.6.30.0170.00315.70
5.6.20.0090.01215.61
5.6.10.0060.01715.59
5.6.00.0100.01015.75
5.5.380.0260.00815.52
5.5.370.0220.01015.61
5.5.360.0210.01015.56
5.5.350.0230.00915.70
5.5.340.0210.01115.51
5.5.330.0260.01015.68
5.5.320.0190.02015.51
5.5.310.0150.02315.61
5.5.300.0220.01315.56
5.5.290.0210.01715.59
5.5.280.0200.01715.51
5.5.270.0330.00015.73
5.5.260.0250.00815.91
5.5.250.0160.01915.62
5.5.240.0260.00715.68
5.5.230.0190.01715.61
5.5.220.0190.01615.80
5.5.210.0200.01315.61
5.5.200.0190.01315.51
5.5.190.0180.01815.83
5.5.180.0180.01415.67
5.5.170.0170.01715.47
5.5.160.0240.01015.68
5.5.150.0230.01115.63
5.5.140.0330.00715.46
5.5.130.0280.00415.61
5.5.120.0190.01015.79
5.5.110.0200.01115.57
5.5.100.0200.00815.53
5.5.90.0170.01715.73
5.5.80.0260.00715.50
5.5.70.0140.02015.62
5.5.60.0210.01315.70
5.5.50.0240.00915.39
5.5.40.0210.01615.64
5.5.30.0210.00815.32
5.5.20.0140.01415.61
5.5.10.0250.00415.61
5.5.00.0270.00815.55
5.4.450.0170.00712.79
5.4.440.0190.00812.64
5.4.430.0230.00712.66
5.4.420.0170.01012.67
5.4.410.0160.01312.60
5.4.400.0200.00712.58
5.4.390.0160.00912.43
5.4.380.0220.00512.50
5.4.370.0190.00612.44
5.4.360.0110.01412.58
5.4.350.0160.00912.69
5.4.340.0170.01012.58
5.4.330.0200.01012.36
5.4.320.0180.00912.59
5.4.310.0170.01012.48
5.4.300.0140.01112.47
5.4.290.0210.00612.44
5.4.280.0210.00312.37
5.4.270.0180.00412.47
5.4.260.0120.01212.69
5.4.250.0160.00912.36
5.4.240.0140.01012.38
5.4.230.0170.00812.44
5.4.220.0210.00612.31
5.4.210.0210.00612.68
5.4.200.0200.00712.45
5.4.190.0200.00912.56
5.4.180.0200.00212.41
5.4.170.0190.00612.36
5.4.160.0110.01112.36
5.4.150.0200.00312.37
5.4.140.0200.00312.64
5.4.130.0160.00512.40
5.4.120.0120.01312.49
5.4.110.0180.00612.71
5.4.100.0170.00912.48
5.4.90.0110.01112.54
5.4.80.0120.01312.52
5.4.70.0100.01312.50
5.4.60.0200.00312.52
5.4.50.0170.01012.45
5.4.40.0130.01312.61
5.4.30.0190.00612.52
5.4.20.0170.00412.55
5.4.10.0120.00912.46
5.4.00.0160.00212.46
5.3.290.0170.01012.95
5.3.280.0170.00613.05
5.3.270.0120.01212.83
5.3.260.0230.00412.90
5.3.250.0170.00712.82
5.3.240.0160.00912.88
5.3.230.0180.00612.83
5.3.220.0200.00712.90
5.3.210.0240.00312.95
5.3.200.0200.00312.84
5.3.190.0150.01212.78
5.3.180.0140.01412.95
5.3.170.0200.00312.99
5.3.160.0170.01013.02
5.3.150.0160.01613.01
5.3.140.0140.00912.95
5.3.130.0170.00913.00
5.3.120.0150.01112.80
5.3.110.0160.01412.76
5.3.100.0160.01012.87
5.3.90.0190.00712.93
5.3.80.0170.00612.70
5.3.70.0160.01312.70
5.3.60.0110.01112.81
5.3.50.0200.00612.77
5.3.40.0200.00612.82
5.3.30.0190.00612.64
5.3.20.0170.00713.01
5.3.10.0200.00912.47
5.3.00.0200.00712.52
5.2.170.0090.01311.95
5.2.160.0110.01111.96
5.2.150.0120.00911.96
5.2.140.0140.00911.96
5.2.130.0140.00711.86
5.2.120.0140.00911.94
5.2.110.0150.00612.12
5.2.100.0170.00412.04
5.2.90.0170.00411.79
5.2.80.0130.00811.78
5.2.70.0160.00311.78
5.2.60.0080.01111.69
5.2.50.0110.00911.77
5.2.40.0110.00711.93
5.2.30.0120.00611.76
5.2.20.0190.00611.93
5.2.10.0120.01211.60
5.2.00.0150.00611.61
5.1.60.0120.00610.88
5.1.50.0130.00511.03
5.1.40.0100.01111.25
5.1.30.0180.00411.09
5.1.20.0110.00811.07
5.1.10.0130.00711.16
5.1.00.0100.00710.80
5.0.50.0080.00810.15
5.0.40.0070.01110.15
5.0.30.0070.00810.15
5.0.20.0130.00310.15
5.0.10.0070.00710.15
5.0.00.0070.00710.15
4.4.90.0110.00010.15
4.4.80.0000.00910.15
4.4.70.0040.00810.15
4.4.60.0100.00010.15
4.4.50.0070.00410.15
4.4.40.0100.00010.15
4.4.30.0120.00010.15
4.4.20.0090.00010.15
4.4.10.0090.00310.15
4.4.00.0090.00010.15
4.3.110.0000.01010.15
4.3.100.0070.00410.15
4.3.90.0060.00410.15
4.3.80.0050.00510.15
4.3.70.0000.01010.15
4.3.60.0090.00010.15
4.3.50.0050.00510.15
4.3.40.0000.00910.15
4.3.30.0090.00010.15
4.3.20.0090.00010.15
4.3.10.0080.00010.15
4.3.00.0090.00010.15

preferences:
30.61 ms | 403 KiB | 5 Q