3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( 'fooo<', 'bar>', ); $glue = 'baz'; var_dump(explode($glue, strip_tags(implode($glue, array_values($array))))); $glue = '{-8]'; var_dump(explode($glue, strip_tags(implode($glue, array_values($array)))));

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.31
8.3.50.0140.00722.05
8.3.40.0140.00018.58
8.3.30.0080.00520.02
8.3.20.0000.00818.52
8.3.10.0040.00420.83
8.3.00.0040.00419.68
8.2.180.0140.00416.50
8.2.170.0130.00722.96
8.2.160.0070.00720.21
8.2.150.0100.01024.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0040.00420.98
8.2.110.0030.00720.35
8.2.100.0070.00417.66
8.2.90.0030.00519.25
8.2.80.0040.00419.39
8.2.70.0090.00017.50
8.2.60.0000.00818.04
8.2.50.0080.00018.07
8.2.40.0040.00418.16
8.2.30.0000.00721.21
8.2.20.0000.00717.46
8.2.10.0000.00817.68
8.2.00.0040.00417.68
8.1.280.0070.01325.92
8.1.270.0060.00323.99
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0130.00020.62
8.1.230.0080.00422.62
8.1.220.0040.00418.77
8.1.210.0040.00418.77
8.1.200.0060.00317.22
8.1.190.0040.00417.39
8.1.180.0040.00418.10
8.1.170.0060.00318.50
8.1.160.0050.00318.80
8.1.150.0080.00018.57
8.1.140.0060.00317.29
8.1.130.0030.00317.87
8.1.120.0000.00717.42
8.1.110.0030.00517.38
8.1.100.0030.00317.28
8.1.90.0050.00217.39
8.1.80.0000.00717.44
8.1.70.0030.00317.35
8.1.60.0040.00417.43
8.1.50.0000.00817.29
8.1.40.0040.00417.34
8.1.30.0000.00717.46
8.1.20.0040.00417.57
8.1.10.0070.00017.32
8.1.00.0000.01017.40
8.0.300.0030.00719.85
8.0.290.0000.00716.93
8.0.280.0030.00318.21
8.0.270.0030.00317.17
8.0.260.0000.00616.62
8.0.250.0040.00416.85
8.0.240.0000.01016.88
8.0.230.0000.00716.91
8.0.220.0030.00316.71
8.0.210.0070.00016.86
8.0.200.0000.00616.89
8.0.190.0060.00316.86
8.0.180.0040.00416.84
8.0.170.0070.00016.63
8.0.160.0000.00816.89
8.0.150.0040.00416.77
8.0.140.0050.00216.77
8.0.130.0050.00013.30
8.0.120.0050.00316.88
8.0.110.0040.00416.81
8.0.100.0000.00716.78
8.0.90.0070.00016.81
8.0.80.0120.00616.78
8.0.70.0000.00816.94
8.0.60.0040.00416.63
8.0.50.0040.00416.70
8.0.30.0120.00916.87
8.0.20.0130.00817.40
8.0.10.0040.00416.74
8.0.00.0060.01116.66
7.4.330.0050.00015.06
7.4.320.0030.00616.45
7.4.300.0090.00016.44
7.4.290.0030.00316.51
7.4.280.0000.00816.54
7.4.270.0030.00316.46
7.4.260.0000.00513.15
7.4.250.0020.00516.43
7.4.240.0070.00016.44
7.4.230.0040.00416.55
7.4.220.0090.00716.48
7.4.210.0060.01116.52
7.4.200.0000.00716.51
7.4.190.0000.00716.60
7.4.160.0130.01016.36
7.4.150.0120.01217.40
7.4.140.0120.00717.86
7.4.130.0110.00816.46
7.4.120.0080.00916.42
7.4.110.0130.00916.30
7.4.100.0120.00616.54
7.4.90.0090.01516.43
7.4.80.0030.01419.39
7.4.70.0130.01016.19
7.4.60.0120.00616.41
7.4.50.0060.00316.30
7.4.40.0110.00622.77
7.4.30.0190.00516.16
7.4.00.0080.00814.74
7.3.330.0000.00513.04
7.3.320.0000.00613.04
7.3.310.0000.00716.09
7.3.300.0030.00316.24
7.3.290.0040.01116.00
7.3.280.0070.01116.12
7.3.270.0130.00917.40
7.3.260.0120.01118.24
7.3.250.0080.00916.26
7.3.240.0090.00916.31
7.3.230.0040.01216.39
7.3.210.0120.00416.44
7.3.200.0110.00819.39
7.3.190.0100.00716.09
7.3.180.0060.00916.36
7.3.170.0040.01116.27
7.3.160.0090.00616.11
7.3.120.0040.01114.35
7.3.10.0070.00716.54
7.3.00.0100.00216.51
7.2.330.0030.01416.38
7.2.320.0070.01016.54
7.2.310.0090.01216.54
7.2.300.0170.00716.40
7.2.290.0070.01016.59
7.2.130.0060.00916.77
7.2.120.0080.00616.78
7.2.110.0060.00716.68
7.2.100.0080.00516.48
7.2.90.0030.00816.72
7.2.80.0040.00916.72
7.2.70.0070.00416.69
7.2.60.0020.00916.66
7.2.50.0040.00916.62
7.2.40.0050.00816.63
7.2.30.0000.01316.63
7.2.20.0080.00616.81
7.2.10.0080.00516.51
7.2.00.0080.00416.63
7.1.250.0040.00515.63
7.1.240.0000.01315.73
7.1.230.0090.00915.58
7.1.220.0040.00415.83
7.1.210.0000.01415.55
7.1.200.0000.01315.57
7.1.190.0000.01315.73
7.1.180.0040.00415.86
7.1.170.0090.00315.61
7.1.160.0070.00715.47
7.1.150.0030.01015.72
7.1.140.0090.00315.64
7.1.130.0030.01215.56
7.1.120.0000.01015.72
7.1.110.0070.01015.66
7.1.100.0060.00315.85
7.1.90.0040.01215.30
7.1.80.0060.00915.43
7.1.70.0050.00516.43
7.1.60.0070.00616.48
7.1.50.0090.00716.36
7.1.40.0050.00715.96
7.1.30.0060.00616.06
7.1.20.0030.00916.33
7.1.10.0050.00716.04
7.1.00.0020.01016.18
7.0.330.0060.00315.50
7.0.320.0030.00515.13
7.0.310.0030.00715.55
7.0.300.0030.01015.28
7.0.290.0040.00815.12
7.0.280.0050.00515.37
7.0.270.0090.00615.37
7.0.260.0000.01615.15
7.0.250.0000.01115.60
7.0.240.0080.00415.36
7.0.230.0030.00615.38
7.0.220.0040.00815.11
7.0.210.0060.00615.59
7.0.200.0060.00416.10
7.0.190.0050.00815.92
7.0.180.0050.00615.79
7.0.170.0000.00915.81
7.0.160.0030.00515.79
7.0.150.0010.01315.70
7.0.140.0050.00615.67
7.0.130.0050.00715.87
7.0.120.0000.00915.89
7.0.110.0040.00615.84
7.0.100.0030.00515.87
7.0.90.0040.00415.84
7.0.80.0040.00415.78
7.0.70.0060.00615.79
7.0.60.0050.00815.69
7.0.50.0050.00515.80
7.0.40.0060.00314.05
7.0.30.0030.00714.07
7.0.20.0050.00513.99
7.0.10.0050.00614.12
7.0.00.0000.01114.19
5.6.380.0000.01314.30
5.6.370.0040.00814.29
5.6.360.0000.00814.32
5.6.350.0070.00314.17
5.6.340.0100.00313.87
5.6.330.0030.01213.74
5.6.320.0090.00614.40
5.6.310.0070.00414.27
5.6.300.0050.02417.29
5.6.290.0080.02217.40
5.6.280.0050.02417.63
5.6.270.0050.02517.63
5.6.260.0040.02417.53
5.6.250.0040.02717.36
5.6.240.0060.02517.47
5.6.230.0050.02517.57
5.6.220.0030.02217.47
5.6.210.0100.03617.53
5.6.200.0070.02317.68
5.6.190.0080.02117.46
5.6.180.0020.02617.47
5.6.170.0060.02517.53
5.6.160.0040.02417.50
5.6.150.0050.02517.44
5.6.140.0020.02917.53
5.6.130.0050.04617.54
5.6.120.0060.02317.39
5.6.110.0090.02017.60
5.6.100.0050.03217.51
5.6.90.0030.02417.43
5.6.80.0020.02717.11
5.6.70.0070.02117.09
5.6.60.0050.02417.20
5.6.50.0020.02517.17
5.6.40.0060.02317.22
5.6.30.0050.02317.19
5.6.20.0050.02417.18
5.6.10.0050.02417.19
5.6.00.0070.02017.19
5.5.380.0100.02014.55
5.5.370.0020.02514.55
5.5.360.0070.02514.62
5.5.350.0060.02114.52
5.5.340.0030.02914.83
5.5.330.0040.02314.67
5.5.320.0000.02614.74
5.5.310.0030.02714.85
5.5.300.0060.01914.83
5.5.290.0030.02214.79
5.5.280.0050.02214.83
5.5.270.0030.02614.83
5.5.260.0170.01714.82
5.5.250.0030.02414.74
5.5.240.0050.02214.50
5.5.230.0010.02614.36
5.5.220.0050.02114.52
5.5.210.0020.02814.43
5.5.200.0030.02114.55
5.5.190.0010.02214.52
5.5.180.0010.02214.55
5.5.170.0040.00811.64
5.5.160.0080.01914.51
5.5.150.0040.02114.52
5.5.140.0070.02014.52
5.5.130.0070.01914.48
5.5.120.0070.03014.47
5.5.110.0030.02314.50
5.5.100.0070.02014.48
5.5.90.0030.02014.44
5.5.80.0060.02014.41
5.5.70.0030.02214.44
5.5.60.0030.02514.43
5.5.50.0030.02514.42
5.5.40.0050.02114.42
5.5.30.0050.01914.43
5.5.20.0030.02514.49
5.5.10.0030.02514.45
5.5.00.0070.03014.45
5.4.450.0040.02615.51
5.4.440.0070.02315.47
5.4.430.0030.02515.51
5.4.420.0000.02715.51
5.4.410.0020.02415.45
5.4.400.0040.02415.31
5.4.390.0000.02815.39
5.4.380.0110.01715.26
5.4.370.0090.02215.39
5.4.360.0060.02315.39
5.4.350.0050.02115.24
5.4.340.0040.02415.35
5.4.330.0090.00411.64
5.4.320.0050.02115.35
5.4.310.0050.01915.33
5.4.300.0030.02415.34
5.4.290.0020.02315.33
5.4.280.0040.02215.31
5.4.270.0050.02115.25
5.4.260.0050.02515.23
5.4.250.0020.02615.40
5.4.240.0040.02115.28
5.4.230.0030.02315.34
5.4.220.0080.02615.32
5.4.210.0050.02615.30
5.4.200.0020.02315.30
5.4.190.0080.02015.35
5.4.180.0030.02415.40
5.4.170.0090.02015.36
5.4.160.0060.01715.33
5.4.150.0060.02115.22
5.4.140.0060.02214.14
5.4.130.0030.02214.01
5.4.120.0040.02013.99
5.4.110.0040.02114.16
5.4.100.0040.02314.14
5.4.90.0040.02414.13
5.4.80.0020.02614.02
5.4.70.0050.01913.99
5.4.60.0000.02514.09
5.4.50.0030.02213.99
5.4.40.0060.01814.17
5.4.30.0050.01714.06
5.4.20.0120.01614.09
5.4.10.0020.02413.98
5.4.00.0050.01813.86
5.3.290.0050.02013.25
5.3.280.0030.02213.25
5.3.270.0020.02213.25
5.3.260.0020.02313.25
5.3.250.0030.02213.25
5.3.240.0040.02213.25
5.3.230.0040.01913.25
5.3.220.0020.02113.25
5.3.210.0020.03013.25
5.3.200.0040.02213.25
5.3.190.0000.02713.25
5.3.180.0030.02113.25
5.3.170.0020.02413.25
5.3.160.0050.02013.25
5.3.150.0050.01913.25
5.3.140.0060.02013.25
5.3.130.0060.01913.25
5.3.120.0060.01913.25
5.3.110.0080.02213.25
5.3.100.0050.02113.25
5.3.90.0030.02413.25
5.3.80.0020.02413.25
5.3.70.0030.02113.25
5.3.60.0050.02213.25
5.3.50.0040.02213.25
5.3.40.0040.02213.25
5.3.30.0030.02413.25
5.3.20.0030.01913.25
5.3.10.0040.02213.25
5.3.00.0060.01713.25
5.2.170.0030.01913.25
5.2.160.0020.01813.25
5.2.150.0020.02513.25
5.2.140.0020.02113.25
5.2.130.0020.02013.25
5.2.120.0020.01713.25
5.2.110.0060.01713.25
5.2.100.0000.01913.25
5.2.90.0050.01513.25
5.2.80.0030.01713.25
5.2.70.0030.01713.25
5.2.60.0050.01613.25
5.2.50.0050.01513.25
5.2.40.0040.01313.25
5.2.30.0020.02213.25
5.2.20.0020.02013.25
5.2.10.0070.01313.25
5.2.00.0030.01613.25
5.1.60.0060.01213.25
5.1.50.0060.01013.25
5.1.40.0030.01413.25
5.1.30.0000.01713.25
5.1.20.0030.01613.25
5.1.10.0000.01713.25
5.1.00.0050.01313.25
5.0.50.0030.01213.25
5.0.40.0030.01313.25
5.0.30.0060.01313.25
5.0.20.0050.00913.25
5.0.10.0020.01313.25
5.0.00.0010.01913.25
4.4.90.0020.01113.25
4.4.80.0020.00913.25
4.4.70.0020.00813.25
4.4.60.0000.01113.25
4.4.50.0050.00613.25
4.4.40.0040.01313.25
4.4.30.0020.01013.25
4.4.20.0000.01213.25
4.4.10.0030.00913.25
4.4.00.0000.01713.25
4.3.110.0000.01213.25
4.3.100.0020.00913.25
4.3.90.0040.01013.25
4.3.80.0060.01213.25
4.3.70.0020.00913.25
4.3.60.0020.01013.25
4.3.50.0020.00913.25
4.3.40.0030.01213.25
4.3.30.0010.01113.25
4.3.20.0030.00913.25
4.3.10.0030.00913.25
4.3.00.0030.00713.25

preferences:
36.36 ms | 401 KiB | 5 Q