3v4l.org

run code in 300+ PHP versions simultaneously
<?php define("DB", [ "DB_HOST_NAME" => "localhost", "DB_USER_NAME" => "root", "DB_PASSWORD" => "password", "DB_DATABASE" => "db_example" ]); prin_r(DB);

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.01016.63
8.3.50.0120.00816.36
8.3.40.0110.01118.77
8.3.30.0040.01118.85
8.3.20.0000.00720.21
8.3.10.0040.00421.77
8.3.00.0050.00321.67
8.2.180.0140.00716.63
8.2.170.0170.00322.96
8.2.160.0160.00320.52
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00421.96
8.2.120.0080.00026.35
8.2.110.0110.00022.24
8.2.100.0110.00018.09
8.2.90.0040.00419.22
8.2.80.0030.00517.97
8.2.70.0030.00617.50
8.2.60.0040.00817.80
8.2.50.0040.00418.10
8.2.40.0080.00020.32
8.2.30.0050.00219.05
8.2.20.0040.00417.86
8.2.10.0040.00418.04
8.2.00.0040.00418.16
8.1.280.0060.01225.92
8.1.270.0040.00422.02
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00422.14
8.1.230.0080.00417.52
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.25
8.1.190.0080.00017.23
8.1.180.0040.00418.10
8.1.170.0100.00018.24
8.1.160.0000.00718.75
8.1.150.0000.00720.29
8.1.140.0000.00719.32
8.1.130.0030.00319.05
8.1.120.0040.00417.34
8.1.110.0050.00317.21
8.1.100.0000.00817.32
8.1.90.0000.00717.30
8.1.80.0040.00417.32
8.1.70.0030.00317.20
8.1.60.0040.00417.41
8.1.50.0040.00417.38
8.1.40.0100.00017.41
8.1.30.0090.00017.57
8.1.20.0000.00817.43
8.1.10.0070.00017.50
8.1.00.0050.00317.45
8.0.300.0030.00618.77
8.0.290.0080.00016.63
8.0.280.0000.00718.37
8.0.270.0030.00717.20
8.0.260.0000.00617.19
8.0.250.0030.00317.01
8.0.240.0000.00716.92
8.0.230.0000.00716.96
8.0.220.0000.00716.80
8.0.210.0000.00616.90
8.0.200.0030.00316.86
8.0.190.0000.00916.88
8.0.180.0070.00016.91
8.0.170.0000.00716.90
8.0.160.0050.00316.93
8.0.150.0030.00316.88
8.0.140.0080.00016.82
8.0.130.0040.00413.27
8.0.120.0040.00416.89
8.0.110.0000.00716.83
8.0.100.0000.00716.95
8.0.90.0000.00716.78
8.0.80.0190.00016.87
8.0.70.0040.00416.87
8.0.60.0020.00516.71
8.0.50.0000.00716.94
8.0.30.0080.01116.93
8.0.20.0180.01117.40
8.0.10.0070.00016.99
8.0.00.0090.00616.87
7.4.330.0050.00015.55
7.4.320.0040.00416.45
7.4.300.0070.00016.32
7.4.290.0030.00316.34
7.4.280.0040.00416.50
7.4.270.0000.00716.28
7.4.260.0070.00016.34
7.4.250.0050.00316.30
7.4.240.0000.00716.41
7.4.230.0040.00416.50
7.4.220.0090.00916.59
7.4.210.0070.00716.46
7.4.200.0000.00716.34
7.4.160.0110.00516.43
7.4.150.0170.00317.40
7.4.140.0120.00717.86
7.4.130.0090.01216.50
7.4.120.0130.00716.52
7.4.110.0060.01116.36
7.4.100.0150.00416.41
7.4.90.0110.00916.41
7.4.80.0100.01319.39
7.4.70.0030.01416.55
7.4.60.0080.00816.54
7.4.50.0100.00716.40
7.4.40.0100.00716.46
7.4.30.0030.01316.30
7.4.00.0040.00814.67
7.3.330.0060.00013.23
7.3.320.0050.00013.05
7.3.310.0000.00816.25
7.3.300.0030.00316.09
7.3.290.0080.00616.27
7.3.280.0090.00916.26
7.3.270.0140.00417.40
7.3.260.0100.00716.47
7.3.250.0120.00616.23
7.3.240.0100.00616.28
7.3.230.0110.00716.39
7.3.210.0100.00716.24
7.3.200.0100.00516.24
7.3.190.0120.00916.52
7.3.180.0070.01016.46
7.3.170.0100.00616.30
7.3.160.0120.00316.42
7.2.330.0110.00716.60
7.2.320.0030.01716.47
7.2.310.0060.01016.53
7.2.300.0060.01616.54
7.2.290.0040.01416.20
7.2.110.0070.00716.57
7.2.60.0120.00316.92
7.2.00.0030.01319.27
7.1.200.0000.01315.61
7.1.100.0030.01017.86
7.1.70.0000.00816.82
7.1.60.0030.00917.18
7.1.50.0210.00316.82
7.1.30.1330.06036.42
7.1.20.0970.05336.46
7.1.10.1200.07720.37
7.1.00.1170.07320.50
7.0.200.0040.01116.78
7.0.170.1300.07020.02
7.0.160.0830.06720.07
7.0.150.1130.07020.08
7.0.140.1370.04719.99
7.0.130.0730.06019.93
7.0.120.1000.05720.11
7.0.110.0830.06020.07
7.0.100.1270.07720.05
7.0.90.1270.06320.17
7.0.80.1200.07719.93
7.0.70.0970.07020.10
7.0.60.1630.06020.09
7.0.50.2200.06720.12
7.0.40.1370.06020.02
7.0.30.1370.06720.10
7.0.20.1330.07020.16
7.0.10.1030.05320.06
7.0.00.1100.05720.05

preferences:
61.9 ms | 401 KiB | 5 Q