3v4l.org

run code in 300+ PHP versions simultaneously
<?php const DIR_PATH_LINUX = '/opt/myprogram/'; const DIR_PATH_WINDOWS = 'C:\xampp\htdocs\\parspack\\storage\\myprogram\\'; $os = 'windows'; echo constant("DIR_PATH_".strtoupper($os));

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.0120.00318.30
8.3.50.0040.01116.29
8.3.40.0100.01321.93
8.3.30.0090.00618.38
8.3.20.0040.00424.18
8.3.10.0050.00324.66
8.3.00.0000.00726.16
8.2.180.0100.00725.92
8.2.170.0060.00918.97
8.2.160.0130.00022.96
8.2.150.0040.00425.66
8.2.140.0100.00024.66
8.2.130.0070.00026.16
8.2.120.0070.00026.35
8.2.110.0190.00320.95
8.2.100.0090.00317.78
8.2.90.0000.00817.75
8.2.80.0060.00318.64
8.2.70.0040.00417.63
8.2.60.0000.00817.36
8.2.50.0080.00018.05
8.2.40.0080.00019.75
8.2.30.0040.00418.08
8.2.20.0040.00418.05
8.2.10.0000.00719.29
8.2.00.0000.00719.14
8.1.280.0090.00925.92
8.1.270.0040.00423.99
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0100.00022.46
8.1.230.0000.01220.91
8.1.220.0030.00617.74
8.1.210.0030.00618.77
8.1.200.0000.00817.53
8.1.190.0040.00417.13
8.1.180.0040.00418.10
8.1.170.0000.00918.54
8.1.160.0030.00618.87
8.1.150.0040.00418.79
8.1.140.0070.00018.93
8.1.130.0030.00320.17
8.1.120.0070.00017.49
8.1.110.0080.00017.38
8.1.100.0000.00717.32
8.1.90.0000.00717.47
8.1.80.0050.00317.50
8.1.70.0040.00417.37
8.1.60.0030.00517.60
8.1.50.0040.00417.48
8.1.40.0070.00417.50
8.1.30.0000.00717.64
8.1.20.0000.00717.55
8.1.10.0050.00317.36
8.1.00.0110.00017.45
8.0.300.0040.00420.04
8.0.290.0000.00716.61
8.0.280.0000.00718.48
8.0.270.0040.00417.95
8.0.260.0040.00420.25
8.0.250.0050.00316.91
8.0.240.0030.00317.00
8.0.230.0040.00416.98
8.0.220.0040.00416.85
8.0.210.0000.00716.88
8.0.200.0000.00716.87
8.0.190.0070.00016.95
8.0.180.0040.00416.88
8.0.170.0000.00816.79
8.0.160.0000.00716.94
8.0.150.0060.00316.86
8.0.140.0040.00716.82
8.0.130.0030.00313.37
8.0.120.0080.00016.81
8.0.110.0040.00416.82
8.0.100.0040.00416.67
8.0.90.0000.00716.88
8.0.80.0080.00716.86
8.0.70.0020.00516.77
8.0.60.0030.00416.91
8.0.50.0030.00516.89
8.0.30.0100.00716.91
8.0.20.0090.00916.92
8.0.10.0000.00816.88
8.0.00.0170.00316.75
7.4.330.0020.00215.55
7.4.320.0000.00616.52
7.4.300.0030.00316.51
7.4.290.0000.00816.51
7.4.280.0030.00616.39
7.4.270.0000.00716.45
7.4.260.0030.00313.27
7.4.250.0040.00416.31
7.4.240.0000.00716.39
7.4.230.0000.00716.56
7.4.220.0030.00316.49
7.4.210.0140.00416.62
7.4.200.0000.00716.42
7.4.130.0110.00716.51
7.4.120.0140.00316.43
7.4.110.0060.01016.50
7.4.100.0100.00716.15
7.4.90.0090.00916.61
7.4.80.0110.00516.25
7.4.70.0090.00916.16
7.4.60.0130.00816.36
7.4.50.0120.00516.27
7.4.40.0080.00816.16
7.4.30.0090.00916.52
7.4.20.0080.00916.54
7.4.10.0150.00316.40
7.4.00.0130.00416.19
7.3.330.0030.00416.01
7.3.320.0000.00612.95
7.3.310.0000.00616.14
7.3.300.0000.00616.18
7.3.290.0030.01216.14
7.3.260.0070.01116.39
7.3.230.0100.00816.37
7.3.220.0060.01016.33
7.3.210.0030.01316.36
7.3.200.0080.01016.19
7.3.190.0120.00516.25
7.3.180.0090.01016.18
7.3.170.0120.00615.94
7.3.160.0090.00716.23
7.3.150.0090.00816.25
7.3.140.0120.00416.29
7.3.130.0060.01016.22
7.3.120.0110.00616.24
7.3.110.0060.01016.33
7.3.100.0110.00916.13
7.3.90.0120.00516.10
7.3.80.0110.00516.27
7.3.70.0130.00616.09
7.3.60.0120.00616.08
7.3.50.0120.00416.05
7.3.40.0100.00916.08
7.3.30.0090.00816.21
7.3.20.0050.01116.24
7.3.10.0090.01116.20
7.3.00.0070.01216.29
7.2.340.0120.00616.38
7.2.330.0100.00716.32
7.2.320.0060.01216.47
7.2.310.0060.01016.56
7.2.300.0080.01116.27
7.2.290.0060.01116.40
7.2.280.0130.00516.61
7.2.270.0140.00316.70
7.2.260.0090.00816.24
7.2.250.0090.00816.45
7.2.240.0110.00616.42
7.2.230.0100.00716.48
7.2.220.0060.01116.40
7.2.210.0080.00916.44
7.2.200.0060.01216.65
7.2.190.0080.00816.36
7.2.180.0090.00816.40
7.2.170.0130.00516.45
7.2.160.0020.01516.40
7.2.150.0080.01016.70
7.2.140.0100.00916.61
7.2.130.0140.00416.51
7.2.120.0130.00616.54
7.2.110.0070.01016.54
7.2.100.0110.00716.58
7.2.90.0090.00816.66
7.2.80.0120.00516.58
7.2.70.0090.00816.61
7.2.60.0110.00716.61
7.2.50.0110.00816.62
7.2.40.0110.01016.41
7.2.30.0080.01216.73
7.2.20.0100.00716.63
7.2.10.0140.00716.47
7.2.00.0070.01016.53

preferences:
62.46 ms | 400 KiB | 5 Q