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.0140.00418.55
8.3.50.0140.00016.71
8.3.40.0200.00021.95
8.3.30.0070.00718.54
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0070.00026.16
8.2.180.0150.00025.92
8.2.170.0070.01418.91
8.2.160.0100.00322.96
8.2.150.0070.00025.66
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0040.00419.64
8.2.110.0090.00022.29
8.2.100.0070.00417.88
8.2.90.0030.00617.75
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0040.00417.63
8.2.50.0040.00418.05
8.2.40.0040.00418.09
8.2.30.0000.00717.92
8.2.20.0040.00417.95
8.2.10.0020.00519.26
8.2.00.0040.00419.27
8.1.280.0100.01025.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0040.00424.02
8.1.230.0030.00719.10
8.1.220.0060.00317.74
8.1.210.0030.00618.77
8.1.200.0040.00917.48
8.1.190.0030.00517.23
8.1.180.0040.00418.10
8.1.170.0040.00418.36
8.1.160.0060.00318.95
8.1.150.0060.00318.92
8.1.140.0000.00818.86
8.1.130.0000.00717.34
8.1.120.0000.00817.46
8.1.110.0040.00417.30
8.1.100.0040.00417.43
8.1.90.0040.00417.37
8.1.80.0060.00317.50
8.1.70.0030.00317.45
8.1.60.0040.00417.62
8.1.50.0040.00417.38
8.1.40.0080.00417.38
8.1.30.0030.00617.52
8.1.20.0000.00817.69
8.1.10.0030.00617.63
8.1.00.0050.00517.36
8.0.300.0000.00719.65
8.0.290.0000.00716.75
8.0.280.0070.00018.33
8.0.270.0070.00017.93
8.0.260.0030.00316.91
8.0.250.0030.00316.97
8.0.240.0000.00616.88
8.0.230.0000.00616.91
8.0.220.0030.00316.82
8.0.210.0040.00416.82
8.0.200.0030.00316.89
8.0.190.0000.00716.95
8.0.180.0000.00816.95
8.0.170.0000.00816.84
8.0.160.0000.00817.01
8.0.150.0080.00016.89
8.0.140.0080.00416.78
8.0.130.0060.00013.41
8.0.120.0000.00916.81
8.0.110.0000.00716.89
8.0.100.0040.00416.76
8.0.90.0030.00316.96
8.0.80.0100.00516.84
8.0.70.0000.00716.81
8.0.60.0040.00416.93
8.0.50.0000.00716.80
8.0.30.0120.00417.06
8.0.20.0110.00817.05
8.0.10.0030.00516.94
8.0.00.0120.00616.68
7.4.330.0040.00015.55
7.4.320.0030.00316.56
7.4.300.0070.00016.48
7.4.290.0000.00816.53
7.4.280.0000.00716.49
7.4.270.0000.00816.50
7.4.260.0000.00613.28
7.4.250.0000.00816.55
7.4.240.0030.00316.61
7.4.230.0000.00716.68
7.4.220.0020.00516.51
7.4.210.0070.00716.43
7.4.200.0000.00716.57
7.4.130.0080.01016.51
7.4.120.0060.01316.43
7.4.110.0160.00016.27
7.4.100.0080.00916.11
7.4.90.0100.00616.52
7.4.80.0100.00716.24
7.4.70.0030.01816.39
7.4.60.0070.01016.43
7.4.50.0070.01116.30
7.4.40.0170.00016.27
7.4.30.0100.00616.40
7.4.20.0120.00616.54
7.4.10.0140.00316.21
7.4.00.0090.00616.34
7.3.330.0000.00716.29
7.3.320.0000.00513.24
7.3.310.0000.00716.25
7.3.300.0000.00616.22
7.3.290.0080.00716.23
7.3.260.0050.01716.31
7.3.230.0100.00616.21
7.3.220.0080.00816.49
7.3.210.0100.01016.30
7.3.200.0000.01516.14
7.3.190.0100.00716.44
7.3.180.0060.00916.37
7.3.170.0030.01316.10
7.3.160.0070.01116.32
7.3.150.0060.01116.32
7.3.140.0080.00816.09
7.3.130.0090.00616.23
7.3.120.0100.00616.04
7.3.110.0080.00816.18
7.3.100.0130.00316.25
7.3.90.0130.00316.14
7.3.80.0140.00716.26
7.3.70.0120.00316.26
7.3.60.0100.00615.91
7.3.50.0070.01016.18
7.3.40.0090.00616.09
7.3.30.0120.00316.21
7.3.20.0030.01316.46
7.3.10.0090.00916.39
7.3.00.0060.00916.39
7.2.340.0080.01016.52
7.2.330.0030.01416.50
7.2.320.0060.01816.80
7.2.310.0070.01016.45
7.2.300.0070.01016.50
7.2.290.0100.01316.63
7.2.280.0140.00416.20
7.2.270.0060.01016.60
7.2.260.0070.01116.31
7.2.250.0110.00616.69
7.2.240.0100.00716.74
7.2.230.0070.01016.65
7.2.220.0030.01316.41
7.2.210.0030.01316.58
7.2.200.0100.00616.75
7.2.190.0130.00316.29
7.2.180.0130.00316.21
7.2.170.0070.01016.35
7.2.160.0090.00916.43
7.2.150.0090.00916.65
7.2.140.0120.00616.48
7.2.130.0100.00716.63
7.2.120.0030.01316.66
7.2.110.0100.00716.68
7.2.100.0140.00416.49
7.2.90.0100.00716.81
7.2.80.0130.00316.46
7.2.70.0150.00816.54
7.2.60.0000.02016.55
7.2.50.0080.00816.76
7.2.40.0120.00916.59
7.2.30.0140.00416.62
7.2.20.0090.00916.54
7.2.10.0190.00016.72
7.2.00.0070.01016.51

preferences:
67.93 ms | 401 KiB | 5 Q