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 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.0060.01218.68
8.3.50.0060.00916.65
8.3.40.0100.01021.69
8.3.30.0040.01118.67
8.3.20.0040.00424.18
8.3.10.0050.00224.66
8.3.00.0030.00526.16
8.2.180.0110.00425.92
8.2.170.0140.00419.13
8.2.160.0110.00722.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0070.00026.35
8.2.110.0060.00322.10
8.2.100.0090.00319.48
8.2.90.0050.00318.22
8.2.80.0030.00518.92
8.2.70.0040.00417.63
8.2.60.0030.00517.93
8.2.50.0000.00818.07
8.2.40.0030.00618.16
8.2.30.0000.00717.93
8.2.20.0050.00217.99
8.2.10.0030.00519.21
8.2.00.0030.00319.20
8.1.280.0130.00625.92
8.1.270.0000.00823.99
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0030.00623.83
8.1.230.0090.00319.22
8.1.220.0000.00717.74
8.1.210.0030.00518.77
8.1.200.0030.00617.35
8.1.190.0000.00817.35
8.1.180.0030.00518.10
8.1.170.0030.00618.61
8.1.160.0050.00518.88
8.1.150.0040.00418.82
8.1.140.0050.00318.94
8.1.130.0000.00720.27
8.1.120.0040.00417.45
8.1.110.0000.00817.46
8.1.100.0040.00417.44
8.1.90.0000.00817.47
8.1.80.0030.00417.50
8.1.70.0080.00017.46
8.1.60.0030.00517.49
8.1.50.0000.00817.48
8.1.40.0000.01217.49
8.1.30.0020.00517.57
8.1.20.0020.00517.61
8.1.10.0040.00417.53
8.1.00.0000.00917.39
8.0.300.0000.00818.77
8.0.290.0000.00816.75
8.0.280.0050.00318.41
8.0.270.0030.00318.06
8.0.260.0030.00320.23
8.0.250.0040.00417.01
8.0.240.0030.00317.02
8.0.230.0080.00016.98
8.0.220.0030.00316.87
8.0.210.0070.00016.91
8.0.200.0060.00016.94
8.0.190.0000.00717.01
8.0.180.0070.00016.92
8.0.170.0050.00316.84
8.0.160.0040.00416.88
8.0.150.0030.00616.91
8.0.140.0060.00316.92
8.0.130.0000.00613.35
8.0.120.0030.00616.90
8.0.110.0040.00416.81
8.0.100.0080.00016.83
8.0.90.0030.00316.75
8.0.80.0090.00516.92
8.0.70.0070.00016.98
8.0.60.0000.00716.77
8.0.50.0040.00416.73
8.0.30.0100.00716.88
8.0.20.0100.00817.18
8.0.10.0000.00717.13
8.0.00.0080.01116.83
7.4.330.0000.00616.84
7.4.320.0000.00616.49
7.4.300.0070.00016.57
7.4.290.0000.00816.34
7.4.280.0040.00416.38
7.4.270.0000.00716.42
7.4.260.0000.00513.26
7.4.250.0000.00816.47
7.4.240.0000.00716.42
7.4.230.0000.00716.40
7.4.220.0020.00516.62
7.4.210.0090.00516.57
7.4.200.0000.00716.40
7.4.130.0160.00516.37
7.4.120.0160.00316.46
7.4.110.0130.01016.46
7.4.100.0170.00016.20
7.4.90.0100.00616.51
7.4.80.0060.01116.54
7.4.70.0120.00916.37
7.4.60.0030.01316.63
7.4.50.0060.01116.25
7.4.40.0030.01316.39
7.4.30.0130.00316.36
7.4.20.0170.00016.47
7.4.10.0080.00816.49
7.4.00.0070.01016.17
7.3.330.0000.00716.37
7.3.320.0030.00313.19
7.3.310.0030.00316.29
7.3.300.0030.00316.37
7.3.290.0060.01016.35
7.3.260.0070.01116.35
7.3.230.0110.00816.53
7.3.220.0040.01216.35
7.3.210.0100.00616.64
7.3.200.0030.01216.25
7.3.190.0100.00716.53
7.3.180.0100.00616.36
7.3.170.0060.00916.02
7.3.160.0120.00616.18
7.3.150.0090.00616.37
7.3.140.0130.00316.31
7.3.130.0100.00716.25
7.3.120.0130.00316.24
7.3.110.0080.00816.39
7.3.100.0100.00616.58
7.3.90.0090.00616.28
7.3.80.0040.01116.28
7.3.70.0100.00616.27
7.3.60.0070.01016.12
7.3.50.0060.01116.19
7.3.40.0050.01116.35
7.3.30.0090.00916.38
7.3.20.0060.01116.37
7.3.10.0060.01116.40
7.3.00.0130.00316.40
7.2.340.0100.00716.37
7.2.330.0140.00716.45
7.2.320.0070.01116.30
7.2.310.0080.00816.29
7.2.300.0120.00616.52
7.2.290.0130.00416.29
7.2.280.0080.00816.22
7.2.270.0100.00616.52
7.2.260.0110.00516.04
7.2.250.0040.01416.46
7.2.240.0000.01616.53
7.2.230.0110.00716.24
7.2.220.0080.00816.22
7.2.210.0060.01216.59
7.2.200.0030.01316.43
7.2.190.0080.01016.38
7.2.180.0050.01316.27
7.2.170.0040.01216.48
7.2.160.0110.00616.44
7.2.150.0120.00616.52
7.2.140.0060.01016.52
7.2.130.0070.01116.51
7.2.120.0100.00716.75
7.2.110.0030.01416.54
7.2.100.0120.00616.61
7.2.90.0120.00616.56
7.2.80.0070.01016.49
7.2.70.0110.00616.65
7.2.60.0090.00916.50
7.2.50.0090.00916.59
7.2.40.0140.00516.52
7.2.30.0060.01216.69
7.2.20.0050.01316.49
7.2.10.0080.01216.54
7.2.00.0100.00716.47

preferences:
40.21 ms | 400 KiB | 5 Q