3v4l.org

run code in 300+ PHP versions simultaneously
<?php $header = "asd.ads./ads.test+dsa"; $header = ""; $exploded = explode( '.', $header ); $end = explode( '+', array_pop( $exploded ) ); $object = array_shift( $end ); echo $object;

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.00716.50
8.3.50.0050.01222.71
8.3.40.0140.00718.84
8.3.30.0100.00318.96
8.3.20.0080.00020.16
8.3.10.0080.00023.65
8.3.00.0080.00019.13
8.2.180.0070.00716.63
8.2.170.0110.00422.96
8.2.160.0100.01020.27
8.2.150.0030.00624.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0000.00820.90
8.2.110.0030.00622.16
8.2.100.0040.00818.15
8.2.90.0000.00719.05
8.2.80.0050.00317.97
8.2.70.0050.00317.50
8.2.60.0030.01018.03
8.2.50.0000.00818.07
8.2.40.0030.00618.21
8.2.30.0080.00018.06
8.2.20.0060.00317.68
8.2.10.0040.00418.22
8.2.00.0040.00417.66
8.1.280.0160.00325.92
8.1.270.0100.01023.79
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0090.00023.96
8.1.230.0080.00419.16
8.1.220.0040.00417.77
8.1.210.0050.00318.77
8.1.200.0000.00917.11
8.1.190.0060.00317.23
8.1.180.0000.00818.10
8.1.170.0040.00418.46
8.1.160.0070.00021.82
8.1.150.0090.00318.91
8.1.140.0070.00017.38
8.1.130.0030.00317.83
8.1.120.0000.00717.32
8.1.110.0040.00417.36
8.1.100.0040.00317.39
8.1.90.0000.00717.31
8.1.80.0050.00217.27
8.1.70.0000.00717.39
8.1.60.0050.00317.41
8.1.50.0000.00717.51
8.1.40.0040.00417.46
8.1.30.0040.00417.54
8.1.20.0000.00817.56
8.1.10.0080.00017.54
8.1.00.0040.00417.43
8.0.300.0040.00418.77
8.0.290.0030.00616.63
8.0.280.0000.00618.35
8.0.270.0000.00717.23
8.0.260.0000.00617.34
8.0.250.0030.00316.86
8.0.240.0030.00517.00
8.0.230.0030.00316.76
8.0.220.0050.00316.68
8.0.210.0040.00416.71
8.0.200.0030.00316.88
8.0.190.0080.00016.90
8.0.180.0000.01016.91
8.0.170.0040.00416.93
8.0.160.0040.00416.88
8.0.150.0000.01016.82
8.0.140.0050.00316.76
8.0.130.0000.00813.21
8.0.120.0040.00416.68
8.0.110.0000.00816.87
8.0.100.0000.00716.86
8.0.90.0000.00716.62
8.0.80.0090.00916.72
8.0.70.0000.00716.88
8.0.60.0040.00416.84
8.0.50.0030.00316.80
8.0.30.0080.01217.06
8.0.20.0110.00817.40
8.0.10.0030.00516.76
8.0.00.0050.01316.51
7.4.330.0050.00015.00
7.4.320.0070.00016.53
7.4.300.0030.00316.50
7.4.290.0000.00816.34
7.4.280.0000.00816.47
7.4.270.0030.00316.57
7.4.260.0040.00416.32
7.4.250.0000.00716.31
7.4.240.0050.00216.51
7.4.230.0030.00316.60
7.4.220.0090.00916.57
7.4.210.0110.00416.60
7.4.200.0000.00716.54
7.4.160.0150.00016.45
7.4.150.0180.00617.40
7.4.140.0100.00617.86
7.4.130.0080.00816.44
7.4.120.0110.00616.43
7.4.110.0070.01116.47
7.4.100.0100.00716.35
7.4.90.0070.01116.59
7.4.80.0100.00619.39
7.4.70.0070.01016.24
7.4.60.0150.00316.60
7.4.50.0040.00416.52
7.4.40.0130.00616.38
7.4.30.0110.00616.32
7.4.00.0130.00314.76
7.3.330.0000.00613.04
7.3.320.0000.00513.06
7.3.310.0040.00416.26
7.3.300.0000.00716.23
7.3.290.0060.00916.16
7.3.280.0060.01316.15
7.3.270.0100.01217.40
7.3.260.0070.01016.54
7.3.250.0080.01016.33
7.3.240.0090.00816.50
7.3.230.0130.01016.41
7.3.210.0100.00716.31
7.3.200.0090.00619.39
7.3.190.0100.00616.26
7.3.180.0100.00716.48
7.3.170.0120.00316.27
7.3.160.0060.01016.39
7.3.120.0070.01014.91
7.3.110.0040.01114.59
7.3.100.0040.00814.59
7.3.90.0040.00814.51
7.3.80.0030.01214.80
7.3.70.0060.00314.45
7.3.60.0060.00614.79
7.3.50.0030.01314.91
7.3.40.0040.01414.48
7.3.30.0060.00914.82
7.3.20.0070.00716.63
7.3.10.0070.00816.36
7.3.00.0090.00816.43
7.2.330.0140.01116.59
7.2.320.0140.00416.62
7.2.310.0060.01316.65
7.2.300.0100.00616.64
7.2.290.0070.01116.55
7.2.240.0030.01014.76
7.2.230.0000.01615.12
7.2.220.0090.00614.96
7.2.210.0100.00315.09
7.2.200.0070.00714.71
7.2.190.0130.00314.71
7.2.180.0000.01114.82
7.2.170.0090.00615.01
7.2.160.0030.01014.88
7.2.150.0070.01116.76
7.2.140.0090.00616.90
7.2.130.0060.01216.76
7.2.120.0080.01116.80
7.2.110.0110.00716.57
7.2.100.0110.00616.65
7.2.90.0090.00716.82
7.2.80.0050.00916.80
7.2.70.0080.00816.83
7.2.60.0080.00816.78
7.2.50.0050.01016.63
7.2.40.0050.00616.89
7.2.30.0040.01116.94
7.2.20.0070.00916.80
7.2.10.0030.01016.86
7.2.00.0060.00716.75
7.1.330.0030.01315.83
7.1.320.0040.00715.80
7.1.310.0030.00715.92
7.1.300.0000.01015.64
7.1.290.0100.00315.94
7.1.280.0000.00915.96
7.1.270.0030.00615.84
7.1.260.0070.00715.67
7.1.250.0120.00615.79
7.1.200.0040.01215.67
7.1.70.0090.00616.96
7.1.60.0060.01919.40
7.1.50.0070.00716.80
7.1.00.0100.07022.46
7.0.200.0300.00814.84
7.0.140.0130.06722.15
7.0.60.0030.07319.97
7.0.50.0070.05717.81
7.0.40.0000.06020.08
7.0.30.0400.06320.13
7.0.20.0230.08720.13
7.0.10.0030.04320.33
7.0.00.0070.08320.13
5.6.280.0030.07321.09
5.6.210.0030.05720.52
5.6.200.0070.08318.17
5.6.190.0100.08020.35
5.6.180.0270.04020.53
5.6.170.0230.07020.49
5.6.160.0070.08020.48
5.6.150.0070.06018.15
5.6.140.0100.07318.17
5.6.130.0100.08318.07
5.6.120.0070.04320.92
5.6.110.0030.08320.96
5.6.100.0030.04021.03
5.6.90.0170.07320.91
5.6.80.0070.03720.48
5.5.350.0270.08020.38
5.5.340.0030.05017.88
5.5.330.0000.05720.38
5.5.320.0230.04020.30
5.5.310.0330.07720.32
5.5.300.0030.06718.02
5.5.290.0130.08017.97
5.5.280.0100.04020.96
5.5.270.0030.04320.77
5.5.260.0170.07720.86
5.5.250.0100.06720.54
5.5.240.0230.05020.14
5.4.450.0470.04719.41
5.4.440.0130.04319.24
5.4.430.0300.04319.38
5.4.420.0370.04719.53
5.4.410.0270.04018.97
5.4.400.0170.04319.09
5.4.390.0170.05018.93
5.4.380.0370.05718.46
5.4.370.0330.05318.57
5.4.360.0400.05318.68
5.4.350.0430.05318.62
5.4.340.0400.05318.70
5.4.320.0060.03612.45
5.4.310.0040.03912.45
5.4.300.0030.03712.45
5.4.290.0090.03312.45
5.4.280.0030.03912.35
5.4.270.0050.03612.34
5.4.260.0040.03812.34
5.4.250.0060.03612.35
5.4.240.0020.03912.34
5.4.230.0050.03912.34
5.4.220.0030.03912.34
5.4.210.0060.03812.34
5.4.200.0050.03712.34
5.4.190.0030.03712.33
5.4.180.0090.03212.34
5.4.170.0040.03712.34
5.4.160.0040.03912.34
5.4.150.0110.03912.34
5.4.140.0060.03712.02
5.4.130.0050.03612.01
5.4.120.0040.03511.96
5.4.110.0030.03611.96
5.4.100.0050.03511.96
5.4.90.0060.03611.96
5.4.80.0070.03811.96
5.4.70.0040.03711.96
5.4.60.0080.03111.96
5.4.50.0080.04311.96
5.4.40.0050.03511.95
5.4.30.0050.03711.94
5.4.20.0060.03611.95
5.4.10.0040.03511.95
5.4.00.0030.03811.44
5.3.290.0040.04112.80
5.3.280.0060.04112.71
5.3.270.0070.03612.72
5.3.260.0050.04312.72
5.3.250.0050.04012.72
5.3.240.0070.03512.72
5.3.230.0050.03712.71
5.3.220.0040.03712.68
5.3.210.0060.04312.68
5.3.200.0040.03812.68
5.3.190.0080.03412.68
5.3.180.0040.03812.68
5.3.170.0080.03312.67
5.3.160.0050.03712.67
5.3.150.0050.03712.67
5.3.140.0090.04112.66
5.3.130.0060.04412.65
5.3.120.0080.03612.66
5.3.110.0030.04612.66
5.3.100.0060.03612.12
5.3.90.0070.03412.08
5.3.80.0060.04312.07
5.3.70.0060.03512.08
5.3.60.0040.03712.07
5.3.50.0050.03912.00
5.3.40.0050.03612.00
5.3.30.0070.03311.95
5.3.20.0030.04011.72
5.3.10.0040.03411.69
5.3.00.0060.03711.68
5.2.170.0060.0339.18
5.2.160.0090.0249.18
5.2.150.0020.0329.18
5.2.140.0090.0269.17
5.2.130.0070.0259.14
5.2.120.0050.0269.14
5.2.110.0050.0289.14
5.2.100.0060.0289.14
5.2.90.0040.0309.14
5.2.80.0050.0329.13
5.2.70.0060.0299.13
5.2.60.0040.0319.09
5.2.50.0030.0339.06
5.2.40.0040.0299.03
5.2.30.0060.0299.01
5.2.20.0040.0329.00
5.2.10.0060.0328.92
5.2.00.0050.0308.77
5.1.60.0030.0248.06
5.1.50.0040.0248.06
5.1.40.0010.0278.04
5.1.30.0080.0278.39
5.1.20.0040.0268.41
5.1.10.0050.0288.14
5.1.00.0030.0278.14
5.0.50.0030.0226.61
5.0.40.0030.0206.47
5.0.30.0010.0336.29
5.0.20.0050.0176.26
5.0.10.0020.0216.24
5.0.00.0030.0316.22
4.4.90.0030.0154.78
4.4.80.0010.0184.76
4.4.70.0020.0164.75
4.4.60.0030.0144.75
4.4.50.0050.0184.77
4.4.40.0030.0284.70
4.4.30.0040.0144.76
4.4.20.0020.0164.84
4.4.10.0020.0164.84
4.4.00.0010.0284.76
4.3.110.0040.0224.67
4.3.100.0030.0194.67
4.3.90.0010.0174.64
4.3.80.0040.0264.58
4.3.70.0050.0124.63
4.3.60.0020.0154.63
4.3.50.0030.0224.63
4.3.40.0020.0314.54
4.3.30.0010.0173.28
4.3.20.0010.0193.26
4.3.10.0000.0173.21
4.3.00.0030.02313.25

preferences:
43.44 ms | 401 KiB | 5 Q