3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(array_map(function($token) { $token[0] = token_name($token[0]); return $token; }, token_get_all("<?php if (0 === 1) {} elseif (1 === 2) {} else {}"))); var_dump(array_map(function($token) { $token[0] = token_name($token[0]); return $token; }, token_get_all("<?php if (0 === 1) {} else if (1 === 2) {} else {}")));

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.70.0090.00616.63
8.3.60.0140.00418.56
8.3.50.0120.00522.05
8.3.40.0110.00418.88
8.3.30.0030.01019.27
8.3.20.0070.01120.34
8.3.10.0080.00021.89
8.3.00.0090.00022.64
8.2.190.0110.01116.88
8.2.180.0040.01525.92
8.2.170.0100.01019.13
8.2.160.0070.01022.96
8.2.150.0030.00624.18
8.2.140.0000.00824.66
8.2.130.0000.00826.16
8.2.120.0040.00419.40
8.2.110.0060.00320.35
8.2.100.0030.00917.84
8.2.90.0080.00019.17
8.2.80.0040.00418.03
8.2.70.0060.00317.75
8.2.60.0070.00017.93
8.2.50.0030.00618.07
8.2.40.0000.00818.16
8.2.30.0030.00618.15
8.2.20.0030.00517.79
8.2.10.0040.00417.81
8.2.00.0040.00417.79
8.1.280.0100.00725.92
8.1.270.0040.00423.97
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0080.00322.06
8.1.230.0040.00720.74
8.1.220.0070.00017.78
8.1.210.0030.00618.77
8.1.200.0030.00917.35
8.1.190.0040.00417.40
8.1.180.0060.00318.10
8.1.170.0060.00318.59
8.1.160.0000.01122.02
8.1.150.0070.00018.60
8.1.140.0050.00217.42
8.1.130.0080.00017.70
8.1.120.0030.00317.41
8.1.110.0050.00217.38
8.1.100.0040.00417.38
8.1.90.0040.00417.42
8.1.80.0040.00417.43
8.1.70.0040.00417.45
8.1.60.0030.00617.52
8.1.50.0000.00717.36
8.1.40.0040.00417.48
8.1.30.0050.00317.48
8.1.20.0060.00317.56
8.1.10.0050.00217.49
8.1.00.0000.00717.48
8.0.300.0040.00418.77
8.0.290.0030.00317.18
8.0.280.0000.00718.44
8.0.270.0000.00716.82
8.0.260.0030.00316.77
8.0.250.0000.00716.98
8.0.240.0000.00716.99
8.0.230.0000.00717.04
8.0.220.0000.00716.89
8.0.210.0030.00316.83
8.0.200.0000.00716.91
8.0.190.0000.00716.94
8.0.180.0000.00716.91
8.0.170.0030.00516.97
8.0.160.0050.00216.92
8.0.150.0030.00516.95
8.0.140.0030.00516.98
8.0.130.0000.00613.39
8.0.120.0040.00416.90
8.0.110.0040.00417.02
8.0.100.0000.00716.98
8.0.90.0000.00716.85
8.0.80.0090.00616.98
8.0.70.0040.00416.95
8.0.60.0020.00516.91
8.0.50.0040.00416.86
8.0.30.0100.01217.02
8.0.20.0100.00917.45
8.0.10.0000.00816.98
8.0.00.0070.01016.83
7.4.330.0060.00015.00
7.4.320.0070.00016.61
7.4.300.0000.00716.62
7.4.290.0040.00416.61
7.4.280.0070.00016.42
7.4.270.0000.00816.48
7.4.260.0000.00716.37
7.4.250.0040.00416.52
7.4.240.0040.00416.57
7.4.230.0000.00716.52
7.4.220.0030.01416.66
7.4.210.0070.01116.54
7.4.200.0030.00616.68
7.4.190.0040.00416.47
7.4.160.0150.00516.45
7.4.150.0100.01717.40
7.4.140.0110.01017.86
7.4.130.0090.01116.58
7.4.120.0050.01816.63
7.4.110.0170.01216.67
7.4.100.0160.00616.55
7.4.90.0120.01616.69
7.4.80.0090.01519.39
7.4.70.0070.01216.49
7.4.60.0040.01816.52
7.4.50.0090.00016.55
7.4.40.0070.01322.77
7.4.30.0070.01116.67
7.4.00.0060.01315.12
7.3.330.0000.00513.25
7.3.320.0030.00313.25
7.3.310.0040.00416.20
7.3.300.0000.00716.35
7.3.290.0060.01216.30
7.3.280.0100.01116.38
7.3.270.0150.00917.40
7.3.260.0190.00616.29
7.3.250.0140.00716.50
7.3.240.0170.00716.56
7.3.230.0130.00716.52
7.3.210.0220.00016.57
7.3.200.0150.01019.39
7.3.190.0120.00916.41
7.3.180.0100.00916.36
7.3.170.0150.00916.54
7.3.160.0050.01416.52
7.3.120.0060.01114.63
7.3.110.0120.00714.94
7.3.100.0100.00714.83
7.3.90.0080.00614.89
7.3.80.0080.00814.93
7.3.70.0070.00914.85
7.3.60.0080.00414.85
7.3.50.0040.01114.57
7.3.40.0070.00714.71
7.3.30.0030.01314.82
7.3.20.0070.01016.62
7.3.10.0150.00616.46
7.3.00.0110.00716.63
7.2.330.0030.01716.55
7.2.320.0080.01216.55
7.2.310.0150.00716.68
7.2.300.0070.01416.49
7.2.290.0140.00716.64
7.2.250.0110.01014.69
7.2.240.0120.00814.85
7.2.230.0090.00914.91
7.2.220.0030.01414.86
7.2.210.0040.01415.03
7.2.200.0070.00714.83
7.2.190.0080.00714.84
7.2.180.0060.01014.97
7.2.170.0080.00815.04
7.2.130.0200.00016.59
7.2.120.0110.00716.63
7.2.110.0080.01116.96
7.2.100.0070.00716.64
7.2.90.0030.01216.86
7.2.80.0030.01216.60
7.2.70.0150.00416.29
7.2.60.0060.00716.71
7.2.50.0060.00616.83
7.2.40.0060.00616.80
7.2.30.0040.01116.91
7.2.20.0030.01016.60
7.2.10.0060.00316.46
7.2.00.0150.00316.91
7.1.330.0090.00815.58
7.1.320.0020.01415.75
7.1.310.0050.01015.79
7.1.300.0100.00715.70
7.1.290.0120.00315.57
7.1.280.0030.00815.48
7.1.270.0090.00915.87
7.1.260.0120.00715.61
7.1.250.0100.00715.78
7.1.200.0040.00815.64
7.1.70.0000.00816.77
7.1.60.0110.01419.82
7.1.50.0250.01234.70
7.1.00.0000.08022.45
7.0.200.0060.00616.92
7.0.140.0100.07021.97
7.0.70.0830.08019.99
7.0.60.0830.08719.79
7.0.50.0900.08720.32
7.0.40.0100.08020.05
7.0.30.0070.09020.13
7.0.20.0070.06720.04
7.0.10.0030.09320.07
7.0.00.0170.07720.04
5.6.280.0030.07721.08
5.6.220.0100.05020.66
5.6.210.0170.07720.62
5.6.200.0130.08021.02
5.6.190.0130.08021.06
5.6.180.0100.08320.99
5.6.170.0070.09021.03
5.6.160.0130.08020.96
5.6.150.0100.09020.94
5.6.140.0100.08721.18
5.6.130.0100.08321.02
5.6.120.0070.08021.18
5.6.110.0070.04320.89
5.6.100.0070.08721.05
5.6.90.0100.06021.06
5.6.80.0100.07320.43
5.6.70.0100.07720.42
5.6.60.0070.08320.49
5.6.50.0030.08320.50
5.6.40.0070.08020.45
5.6.30.0200.06320.41
5.6.20.0070.09020.53
5.6.10.0030.05320.53
5.6.00.0000.05020.28
5.5.360.0100.08320.35
5.5.350.0170.07320.48
5.5.340.0030.09320.78
5.5.330.0100.07720.92
5.5.320.0130.07320.74
5.5.310.0100.04720.84
5.5.300.0070.08720.80
5.5.290.0130.06320.91
5.5.280.0030.09320.78
5.5.270.0200.08020.83
5.5.260.0000.09020.86
5.5.250.0170.07720.68
5.5.240.0030.05020.20
5.5.230.0130.07020.14
5.5.220.0070.08320.24
5.5.210.0070.08020.30
5.5.200.0170.04020.27
5.5.190.0100.08320.10
5.5.180.0100.08320.23
5.5.160.0030.08020.09
5.5.150.0130.07020.13
5.5.140.0100.05320.25
5.5.130.0070.05720.08
5.5.120.0030.05320.15
5.5.110.0100.08019.99
5.5.100.0130.08719.98
5.5.90.0070.04720.10
5.5.80.0030.04020.11
5.5.70.0100.08319.97
5.5.60.0130.07320.09
5.5.50.0100.07320.06
5.5.40.0100.07719.94
5.5.30.0130.06320.15
5.5.20.0170.07720.08
5.5.10.0030.08020.07
5.5.00.0100.07020.13
5.4.450.0130.07719.30
5.4.440.0000.07319.45
5.4.430.0170.06719.52
5.4.420.0130.05719.35
5.4.410.0130.06719.07
5.4.400.0100.07718.91
5.4.390.0070.08019.03
5.4.380.0030.05019.09
5.4.370.0130.07319.03
5.4.360.0070.04719.18
5.4.350.0000.05018.90
5.4.340.0130.05319.18
5.4.320.0070.08719.12
5.4.310.0070.08018.91
5.4.300.0030.08318.85
5.4.290.0100.04019.13
5.4.280.0070.08019.09
5.4.270.0230.06719.11
5.4.260.0130.07718.87
5.4.250.0100.07019.17
5.4.240.0100.07018.84
5.4.230.0100.07019.11
5.4.220.0130.07318.89
5.4.210.0100.07018.89
5.4.200.0100.08319.02
5.4.190.0200.06719.04
5.4.180.0170.07018.89
5.4.170.0000.06319.03
5.4.160.0100.07719.02
5.4.150.0200.06319.14
5.4.140.0070.07716.43
5.4.130.0070.07716.51
5.4.120.0170.06316.45
5.4.110.0130.07316.50
5.4.100.0070.07716.45
5.4.90.0030.07016.35
5.4.80.0100.07316.50
5.4.70.0000.06716.36
5.4.60.0170.06716.33
5.4.50.0030.08016.27
5.4.40.0130.06316.50
5.4.30.0030.07716.47
5.4.20.0070.04316.49
5.4.10.0130.06716.53
5.4.00.0100.07315.81
5.3.290.0070.08014.67
5.3.280.0100.07714.68
5.3.270.0100.07714.63
5.3.260.0070.08314.77
5.3.250.0070.08014.64
5.3.240.0170.05714.62
5.3.230.0100.05314.56
5.3.220.0100.07014.53
5.3.210.0130.07314.56
5.3.200.0030.06314.66
5.3.190.0070.07714.56
5.3.180.0070.05314.64
5.3.170.0100.07314.71
5.3.160.0070.06014.71
5.3.150.0100.07014.57
5.3.140.0030.08314.59
5.3.130.0070.08014.58
5.3.120.0200.06314.50
5.3.110.0100.07714.64
5.3.100.0070.07713.99
5.3.90.0100.07714.18
5.3.80.0070.07014.16
5.3.70.0030.05714.14
5.3.60.0000.05713.95
5.3.50.0000.04314.00
5.3.40.0030.04714.04
5.3.30.0070.07313.92
5.3.20.0100.07013.65
5.3.10.0000.04013.78
5.3.00.0070.03313.68
5.2.170.0070.06312.60
5.2.160.0070.06312.60
5.2.150.0030.04712.60
5.2.140.0100.05712.60
5.2.130.0030.04312.60
5.2.120.0100.02712.60
5.2.110.0070.05312.60
5.2.100.0130.05712.60
5.2.90.0000.04312.60
5.2.80.0070.04712.60
5.2.70.0100.06012.60
5.2.60.0070.06012.60
5.2.50.0030.05012.60
5.2.40.0000.04712.60
5.2.30.0030.03712.60
5.2.20.0030.06312.60
5.2.10.0030.05012.60
5.2.00.0170.05712.60
5.1.60.0000.05012.60
5.1.50.0070.05012.60
5.1.40.0070.03712.60
5.1.30.0030.04712.60
5.1.20.0000.04712.60
5.1.10.0070.05012.60
5.1.00.0070.05312.60
5.0.50.0100.04012.60
5.0.40.0030.04312.60
5.0.30.0070.05012.60
5.0.20.0070.03312.60
5.0.10.0070.03312.60
5.0.00.0030.06312.60
4.4.90.0070.03312.60
4.4.80.0000.03712.60
4.4.70.0030.03312.60
4.4.60.0000.03312.60
4.4.50.0030.03712.60
4.4.40.0070.05012.60
4.4.30.0070.03012.60
4.4.20.0000.02312.60
4.4.10.0030.02312.60
4.4.00.0030.05712.60
4.3.110.0070.03312.60
4.3.100.0070.03012.60
4.3.90.0030.03312.60
4.3.80.0000.05312.60
4.3.70.0030.02712.60
4.3.60.0030.03312.60
4.3.50.0000.03712.60
4.3.40.0000.05712.60
4.3.30.0000.02712.60
4.3.20.0000.02712.60
4.3.10.0000.01712.60
4.3.00.0030.02012.60

preferences:
72.02 ms | 401 KiB | 5 Q