3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '<?php print "$array[\'a\']";'; foreach (token_get_all($str) as $t) { if (is_array($t)) { $n = token_name($t[0]); $v = $t[1]; } else { $n = "(literal)"; $v = $t; } printf("%25s: %s\n", $n, var_export($v,TRUE)); }

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.30.0040.01418.71
8.3.20.0110.00420.73
8.3.10.0000.00821.54
8.3.00.0080.00019.69
8.2.160.0100.00719.32
8.2.150.0140.00424.18
8.2.140.0070.00024.66
8.2.130.0050.00326.16
8.2.120.0040.00419.83
8.2.110.0060.00322.26
8.2.100.0110.00519.34
8.2.90.0080.00419.43
8.2.80.0110.00018.91
8.2.70.0150.00518.14
8.2.60.0080.00518.17
8.2.50.0100.00218.49
8.2.40.0090.00219.14
8.2.30.0060.00318.99
8.2.20.0080.01018.41
8.2.10.0040.00418.56
8.2.00.0050.00518.38
8.1.270.0110.00724.66
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0090.00321.15
8.1.230.0130.00921.09
8.1.220.0060.00518.16
8.1.210.0080.00319.34
8.1.200.0130.00617.74
8.1.190.0180.00317.82
8.1.180.0120.00519.11
8.1.170.0040.00617.99
8.1.160.0050.00421.26
8.1.150.0050.00419.60
8.1.140.0040.00718.94
8.1.130.0060.00418.75
8.1.120.0030.00718.04
8.1.110.0080.00217.96
8.1.100.0090.00218.05
8.1.90.0070.00418.02
8.1.80.0070.00317.97
8.1.70.0070.00218.05
8.1.60.0110.00318.06
8.1.50.0120.00017.89
8.1.40.0020.00918.03
8.1.30.0060.00718.25
8.1.20.0070.00418.17
8.1.10.0020.00818.04
8.1.00.0030.00817.99
8.0.300.0070.00418.70
8.0.290.0060.00517.32
8.0.280.0060.00318.15
8.0.270.0060.00517.29
8.0.260.0080.00217.75
8.0.250.0070.00417.34
8.0.240.0060.00517.42
8.0.230.0060.00417.60
8.0.220.0090.00217.36
8.0.210.0080.00217.41
8.0.200.0030.00817.31
8.0.190.0070.00417.37
8.0.180.0130.00317.34
8.0.170.0120.00517.39
8.0.160.0130.00117.36
8.0.150.0130.00417.20
8.0.140.0090.00317.36
8.0.130.0080.00115.83
8.0.120.0070.00417.32
8.0.110.0060.01017.25
8.0.100.0080.00417.30
8.0.90.0070.00417.27
8.0.80.0130.01017.42
8.0.70.0100.00517.34
8.0.60.0050.00517.28
8.0.50.0060.00617.31
8.0.30.0100.00817.38
8.0.20.0080.00917.49
8.0.10.0050.00517.47
8.0.00.0060.01320.18
7.4.330.0050.00215.92
7.4.320.0030.00517.05
7.4.300.0070.00517.94
7.4.290.0060.00517.91
7.4.280.0100.00616.87
7.4.270.0000.00817.83
7.4.260.0080.00417.96
7.4.250.0030.00517.90
7.4.240.0090.00217.91
7.4.230.0090.00517.05
7.4.220.0080.00717.93
7.4.210.0090.00517.07
7.4.200.0020.00517.80
7.4.190.0040.00817.50
7.4.180.0080.00019.32
7.4.160.0070.00719.47
7.4.150.0090.00618.35
7.4.140.0080.01118.21
7.4.130.0100.00916.68
7.4.120.0100.00916.68
7.4.110.0190.00816.83
7.4.100.0140.01217.03
7.4.90.0220.00616.97
7.4.80.0270.00618.16
7.4.70.0220.00716.86
7.4.60.0080.00816.80
7.4.50.0060.01116.75
7.4.40.0160.00416.89
7.4.30.0060.01116.92
7.4.20.0140.00516.99
7.4.10.0110.00516.88
7.4.00.0090.00615.88
7.3.330.0060.00315.31
7.3.320.0070.00315.08
7.3.310.0090.00216.81
7.3.300.0090.00316.80
7.3.290.0080.00716.67
7.3.280.0110.00416.42
7.3.270.0130.00317.23
7.3.260.0130.00616.65
7.3.250.0090.00916.56
7.3.240.0120.00616.78
7.3.230.0130.00916.92
7.3.220.0120.00417.13
7.3.210.0140.00316.63
7.3.200.0110.00516.77
7.3.190.0090.00916.79
7.3.180.0120.00616.74
7.3.170.0220.00616.70
7.3.160.0110.00816.74
7.3.150.0100.00816.76
7.3.140.0090.01016.78
7.3.130.0160.00516.79
7.3.120.0150.00515.55
7.3.110.0140.00715.62
7.3.100.0130.00715.63
7.3.90.0100.01115.67
7.3.80.0120.00715.43
7.3.70.0100.00915.57
7.3.60.0130.00915.46
7.3.50.0110.00615.36
7.3.40.0120.00815.25
7.3.30.0150.00615.30
7.3.20.0140.00716.15
7.3.10.0100.00916.09
7.3.00.0080.00816.09
7.2.340.0080.00619.19
7.2.330.0220.00316.92
7.2.320.0200.00816.99
7.2.310.0190.00916.98
7.2.300.0200.00617.01
7.2.290.0180.00817.21
7.2.280.0250.00416.99
7.2.270.0190.00916.90
7.2.260.0220.00417.03
7.2.250.0100.00715.79
7.2.240.0100.00815.63
7.2.230.0100.00815.82
7.2.220.0130.00915.76
7.2.210.0110.01015.76
7.2.200.0100.00715.82
7.2.190.0090.00815.77
7.2.180.0080.00815.68
7.2.170.0110.00615.59
7.2.160.0100.00715.76
7.2.150.0100.00616.56
7.2.140.0100.00716.27
7.2.130.0110.00716.33
7.2.120.0150.00716.34
7.2.110.0100.00916.33
7.2.100.0130.00616.35
7.2.90.0110.00816.34
7.2.80.0140.00516.38
7.2.70.0120.00816.34
7.2.60.0090.00716.40
7.2.50.0110.01116.25
7.2.40.0150.00816.37
7.2.30.0110.00816.68
7.2.20.0160.00616.55
7.2.10.0120.00916.73
7.2.00.0220.00916.82
7.1.330.0110.00515.53
7.1.320.0110.01015.54
7.1.310.0130.00715.44
7.1.300.0110.00915.54
7.1.290.0130.00615.48
7.1.280.0150.00915.29
7.1.270.0120.00615.28
7.1.260.0110.00515.28
7.1.250.0130.00815.22
7.1.240.0130.01115.12
7.1.230.0130.00915.21
7.1.220.0500.00715.23
7.1.210.0120.01015.19
7.1.200.0110.00815.19
7.1.190.0160.00615.24
7.1.180.0140.00715.11
7.1.170.0130.00915.46
7.1.160.0180.00715.16
7.1.150.0160.00815.46
7.1.140.0110.01215.39
7.1.130.0140.00915.36
7.1.120.0150.00715.61
7.1.110.0150.00715.63
7.1.100.0120.01215.52
7.1.90.0120.01115.54
7.1.80.0200.00815.72
7.1.70.0170.00915.65
7.1.60.0180.00717.95
7.1.50.0170.01017.92
7.1.40.0160.00817.81
7.1.30.0150.01117.69
7.1.20.0140.00917.79
7.1.10.0120.01015.54
7.1.00.0120.00715.69
7.0.330.0160.00814.70
7.0.320.0150.00614.71
7.0.310.0140.00914.82
7.0.300.0140.00914.73
7.0.290.0140.00714.83
7.0.280.0160.00614.82
7.0.270.0160.00814.96
7.0.260.0150.00615.29
7.0.250.0170.00615.18
7.0.240.0280.00915.30
7.0.230.0180.00615.25
7.0.220.0150.00715.20
7.0.210.0140.01115.02
7.0.200.0160.00915.45
7.0.190.0150.00815.28
7.0.180.0130.00815.23
7.0.170.0160.00815.18
7.0.160.0330.00715.31
7.0.150.0160.00715.03
7.0.140.0150.01014.95
7.0.130.0130.01015.03
7.0.120.0140.00615.16
7.0.110.0230.00614.97
7.0.100.0130.00714.94
7.0.90.0140.00915.00
7.0.80.0130.00714.99
7.0.70.0100.00814.99
7.0.60.0140.00614.97
7.0.50.0130.00915.09
7.0.40.0160.00614.94
7.0.30.0130.00914.91
7.0.20.0120.00714.86
7.0.10.0110.00914.95
7.0.00.0130.00914.88
5.6.400.0090.00814.99
5.6.390.0130.00914.99
5.6.380.0140.01015.04
5.6.370.0160.00714.85
5.6.360.0140.01014.94
5.6.350.0180.01015.02
5.6.340.0130.00914.98
5.6.330.0140.00814.85
5.6.320.0160.00715.03
5.6.310.0160.00715.06
5.6.300.0120.02416.44
5.6.290.0110.02416.35
5.6.280.0150.01816.50
5.6.270.0160.02016.45
5.6.260.0150.01916.52
5.6.250.0130.01916.51
5.6.240.0140.02116.55
5.6.230.0140.02316.45
5.6.220.0140.02016.52
5.6.210.0130.01916.45
5.6.200.0160.02116.38
5.6.190.0160.01816.38
5.6.180.0130.02316.54
5.6.170.0150.01816.49
5.6.160.0140.02016.52
5.6.150.0100.02316.46
5.6.140.0120.02116.44
5.6.130.0130.02016.45
5.6.120.0110.02316.45
5.6.110.0160.01916.45
5.6.100.0130.02216.48
5.6.90.0140.01916.47
5.6.80.0150.01716.27
5.6.70.0140.01716.27
5.6.60.0150.01916.28
5.6.50.0130.01716.26
5.6.40.0130.02316.32
5.6.30.0110.02116.28
5.6.20.0130.01916.22
5.6.10.0140.01616.24
5.6.00.0180.01716.28

preferences:
48.46 ms | 401 KiB | 5 Q