3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); function test() { global $x; if($x==='test') var_dump($x); } test();

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.0160.00716.50
8.3.50.0100.00316.26
8.3.40.0140.00018.59
8.3.30.0000.01418.54
8.3.20.0040.00420.31
8.3.10.0040.00421.70
8.3.00.0080.00020.93
8.2.180.0090.00618.29
8.2.170.0000.01422.96
8.2.160.0100.00322.13
8.2.150.0080.00024.18
8.2.140.0030.00724.66
8.2.130.0070.00020.49
8.2.120.0070.00026.35
8.2.110.0050.00220.57
8.2.100.0060.00617.78
8.2.90.0060.00319.09
8.2.80.0040.00417.97
8.2.70.0030.00617.38
8.2.60.0000.00917.80
8.2.50.0050.00318.10
8.2.40.0040.00422.15
8.2.30.0000.00720.78
8.2.20.0040.00417.92
8.2.10.0040.00417.92
8.2.00.0000.00717.96
8.1.280.0100.01425.92
8.1.270.0070.00023.90
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00020.90
8.1.230.0040.00719.04
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.22
8.1.190.0000.00916.97
8.1.180.0060.00318.10
8.1.170.0000.00918.63
8.1.160.0070.00018.99
8.1.150.0070.00020.51
8.1.140.0020.00519.49
8.1.130.0040.00418.67
8.1.120.0050.00317.38
8.1.110.0040.00417.28
8.1.100.0030.00617.33
8.1.90.0000.00717.20
8.1.80.0040.00417.33
8.1.70.0070.00017.29
8.1.60.0070.00017.52
8.1.50.0000.00817.45
8.1.40.0050.00317.45
8.1.30.0030.00517.57
8.1.20.0000.00717.40
8.1.10.0030.00517.38
8.1.00.0000.00717.31
8.0.300.0000.00718.77
8.0.290.0080.00016.63
8.0.280.0070.00018.36
8.0.270.0030.00517.11
8.0.260.0070.00016.73
8.0.250.0000.00716.70
8.0.240.0000.00816.77
8.0.230.0080.00016.80
8.0.220.0000.00716.66
8.0.210.0000.00816.64
8.0.200.0040.00416.77
8.0.190.0000.00816.83
8.0.180.0070.00016.63
8.0.170.0040.00416.75
8.0.160.0000.00716.84
8.0.150.0030.00316.63
8.0.140.0000.00716.73
8.0.130.0020.00513.11
8.0.120.0000.00816.75
8.0.110.0050.00216.74
8.0.100.0030.00516.64
8.0.90.0000.00716.76
8.0.80.0100.00716.73
8.0.70.0000.00816.66
8.0.60.0070.00016.76
8.0.50.0030.00516.75
8.0.30.0060.01316.89
8.0.20.0130.00617.40
8.0.10.0000.00716.66
8.0.00.0080.00816.68
7.4.330.0000.00615.55
7.4.320.0030.00316.55
7.4.300.0000.00716.55
7.4.290.0070.00016.38
7.4.280.0030.00516.42
7.4.270.0000.00716.45
7.4.260.0000.00716.34
7.4.250.0080.00016.44
7.4.240.0000.00716.34
7.4.230.0070.00016.23
7.4.220.0140.01016.62
7.4.210.0080.00616.41
7.4.200.0030.00316.32
7.4.160.0110.00716.34
7.4.150.0140.01017.40
7.4.140.0120.00817.86
7.4.130.0070.01116.23
7.4.120.0120.00816.42
7.4.110.0000.01716.40
7.4.100.0130.01316.65
7.4.90.0160.00716.33
7.4.80.0140.01019.39
7.4.70.0070.01016.41
7.4.60.0130.00316.41
7.4.50.0030.01316.38
7.4.40.0210.03016.54
7.4.30.0160.00516.54
7.4.00.0040.01114.81
7.3.330.0000.00513.25
7.3.320.0050.00013.29
7.3.310.0030.00516.25
7.3.300.0060.00316.35
7.3.290.0000.00716.29
7.3.280.0070.01116.27
7.3.270.0100.00617.40
7.3.260.0100.00716.27
7.3.250.0090.01216.37
7.3.240.0140.00616.40
7.3.230.0130.00316.36
7.3.210.0110.00616.33
7.3.200.0090.00616.53
7.3.190.0100.00616.51
7.3.180.0180.00316.23
7.3.170.0100.00616.39
7.3.160.0060.01516.51
7.3.10.0040.00416.61
7.3.00.0100.00316.48
7.2.330.0190.00616.64
7.2.320.0000.01716.33
7.2.310.0060.01116.24
7.2.300.0030.01316.39
7.2.290.0140.00816.68
7.2.130.0100.00716.82
7.2.120.0100.00316.44
7.2.110.0070.00316.76
7.2.100.0000.01216.74
7.2.90.0000.01416.78
7.2.80.0060.00616.65
7.2.70.0070.00716.86
7.2.60.0030.01116.85
7.2.50.0060.00316.48
7.2.40.0050.00516.63
7.2.30.0060.00616.80
7.2.20.0030.00616.65
7.2.10.0070.00716.81
7.2.00.0050.00818.09
7.1.250.0060.00315.06
7.1.200.0070.00715.69
7.1.100.0070.00717.69
7.1.70.0150.00617.10
7.1.60.0530.01033.31
7.1.50.0600.01732.82
7.1.40.0330.02332.66
7.1.30.0500.01032.66
7.1.20.0770.00732.63
7.1.10.0730.00714.81
7.1.00.0430.01014.69
7.0.200.0430.00314.95
7.0.190.0530.01314.75
7.0.180.0400.01014.45
7.0.170.0530.01014.23
7.0.160.0570.01014.21
7.0.150.0400.01014.27
7.0.140.0530.01014.28
7.0.130.0530.00714.46
7.0.120.0300.01714.49
7.0.110.0430.00714.57
7.0.100.0300.01014.52
7.0.90.0330.01314.36
7.0.80.0370.00714.46
7.0.70.0300.01014.45
7.0.60.0430.00314.01
7.0.50.0500.01014.41
7.0.40.0370.01014.77
7.0.30.0300.01314.68
7.0.20.0570.01014.67
7.0.10.0300.01014.42
7.0.00.0370.00714.59

preferences:
38.81 ms | 401 KiB | 5 Q