3v4l.org

run code in 300+ PHP versions simultaneously
<?php $deleteDir = ""; $deleteDir = realpath($deleteDir); if (!$deleteDir || strpos($deleteDir, 'tmp') === false) { throw new Exception('Could not determine delete directory: ' . $deleteDir); }

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.0110.01116.75
8.3.50.0110.00821.09
8.3.40.0120.00318.70
8.3.30.0140.00718.71
8.3.20.0040.00420.21
8.3.10.0040.00421.76
8.3.00.0050.00319.67
8.2.180.0160.00618.67
8.2.170.0070.00722.96
8.2.160.0100.01020.43
8.2.150.0030.00524.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0060.00317.63
8.2.110.0090.00022.08
8.2.100.0120.00017.63
8.2.90.0080.00019.27
8.2.80.0060.00317.97
8.2.70.0060.00317.75
8.2.60.0000.00817.68
8.2.50.0040.00418.07
8.2.40.0000.00821.10
8.2.30.0050.00517.95
8.2.20.0030.00617.83
8.2.10.0000.00818.20
8.2.00.0050.00218.05
8.1.280.0070.00725.92
8.1.270.0000.00820.40
8.1.260.0050.00226.35
8.1.250.0080.00028.09
8.1.240.0060.00322.47
8.1.230.0040.00817.42
8.1.220.0030.00617.76
8.1.210.0040.00418.77
8.1.200.0060.00317.13
8.1.190.0000.00817.36
8.1.180.0000.00818.10
8.1.170.0070.00018.65
8.1.160.0000.00821.90
8.1.150.0040.00418.95
8.1.140.0080.00017.42
8.1.130.0000.00817.71
8.1.120.0040.00417.52
8.1.110.0060.00317.41
8.1.100.0000.00717.54
8.1.90.0000.00717.45
8.1.80.0070.00017.50
8.1.70.0000.00717.37
8.1.60.0050.00317.66
8.1.50.0040.00417.57
8.1.40.0000.00817.55
8.1.30.0080.00017.60
8.1.20.0040.00417.64
8.1.10.0030.00517.55
8.1.00.0030.00517.39
8.0.300.0050.00218.77
8.0.290.0070.00016.88
8.0.280.0030.00318.52
8.0.270.0030.00317.35
8.0.260.0060.00017.23
8.0.250.0040.00416.92
8.0.240.0060.00316.95
8.0.230.0000.00717.00
8.0.220.0000.00716.93
8.0.210.0000.00716.86
8.0.200.0000.00717.02
8.0.190.0030.00616.90
8.0.180.0000.01016.98
8.0.170.0040.00416.97
8.0.160.0080.00016.99
8.0.150.0030.00316.83
8.0.140.0000.00716.95
8.0.130.0000.00713.37
8.0.120.0000.00916.83
8.0.110.0000.00816.96
8.0.100.0070.00016.89
8.0.90.0000.00816.96
8.0.80.0000.01516.96
8.0.70.0000.00716.81
8.0.60.0040.00416.86
8.0.50.0050.00216.87
8.0.30.0120.00617.26
8.0.20.0090.00917.40
8.0.10.0040.00417.07
8.0.00.0130.00816.83
7.4.330.0050.00015.08
7.4.320.0080.00016.44
7.4.300.0060.00016.61
7.4.290.0000.00716.58
7.4.280.0070.00016.52
7.4.270.0070.00016.54
7.4.260.0040.00416.57
7.4.250.0030.00516.51
7.4.240.0070.00016.48
7.4.230.0030.00316.49
7.4.220.0120.01216.54
7.4.210.0080.01016.52
7.4.200.0000.00716.40
7.4.160.0060.01016.72
7.4.150.0180.00017.40
7.4.140.0120.01017.86
7.4.130.0120.00816.41
7.4.120.0060.01116.50
7.4.110.0000.01916.49
7.4.100.0140.00916.70
7.4.90.0070.01116.46
7.4.80.0110.00719.39
7.4.70.0040.01416.34
7.4.60.0120.00316.46
7.4.50.0000.00816.41
7.4.40.0080.01116.33
7.4.30.0070.01116.77
7.4.10.0000.01915.21
7.4.00.0050.01015.01
7.3.330.0030.00313.14
7.3.320.0000.00513.14
7.3.310.0040.00416.23
7.3.300.0040.00416.24
7.3.290.0000.00716.34
7.3.280.0080.01016.40
7.3.270.0090.00917.40
7.3.260.0070.01016.54
7.3.250.0110.00716.45
7.3.240.0080.00816.36
7.3.230.0060.01016.49
7.3.210.0030.01716.46
7.3.200.0130.00616.45
7.3.190.0130.00316.54
7.3.180.0120.00616.41
7.3.170.0140.00416.38
7.3.160.0100.01016.53
7.3.130.0070.01114.97
7.3.120.0090.00914.79
7.3.110.0030.01614.94
7.3.100.0040.01214.90
7.3.90.0030.01214.72
7.3.80.0060.00914.74
7.3.70.0060.00614.98
7.3.60.0030.00614.88
7.3.50.0090.00914.64
7.3.40.0030.01314.77
7.3.30.0100.00314.80
7.3.20.0090.00616.79
7.3.10.0030.00716.66
7.3.00.0030.01216.23
7.2.330.0040.01416.75
7.2.320.0100.00716.62
7.2.310.0070.01216.78
7.2.300.0060.01016.69
7.2.290.0150.00716.77
7.2.260.0090.00915.01
7.2.250.0140.00414.90
7.2.240.0030.01014.80
7.2.230.0040.01215.04
7.2.220.0070.01314.96
7.2.210.0000.01214.80
7.2.200.0000.01014.96
7.2.190.0080.00414.96
7.2.180.0030.00814.93
7.2.170.0040.00914.86
7.2.160.0030.01414.95
7.2.150.0120.00316.50
7.2.140.0070.00716.77
7.2.130.0060.00617.10
7.2.120.0070.01116.95
7.2.110.0000.01117.00
7.2.100.0070.00316.82
7.2.90.0060.01216.77
7.2.80.0000.00916.67
7.2.70.0060.00916.87
7.2.60.0060.01016.63
7.2.50.0040.01116.95
7.2.40.0110.00716.68
7.2.30.0120.00317.03
7.2.20.0090.00316.90
7.2.10.0000.01316.82
7.2.00.0070.00818.14
7.1.330.0030.00915.57
7.1.320.0070.01115.73
7.1.310.0080.00015.55
7.1.300.0060.01015.68
7.1.290.0060.00915.72
7.1.280.0080.00015.44
7.1.270.0070.00715.60
7.1.260.0070.00715.65
7.1.250.0060.00915.66
7.1.240.0070.00715.36
7.1.230.0030.01015.78
7.1.220.0000.01015.46
7.1.210.0050.00515.71
7.1.200.0070.00815.57
7.1.190.0040.00815.76
7.1.180.0030.00915.71
7.1.170.0000.01315.69
7.1.160.0090.00615.65
7.1.150.0030.01515.83
7.1.140.0030.01015.50
7.1.130.0040.01215.69
7.1.120.0120.00415.73
7.1.110.0070.00715.86
7.1.100.0140.00317.00
7.1.90.0030.00915.73
7.1.80.0000.01315.75
7.1.70.0050.00516.46
7.1.60.0060.00817.79
7.1.50.0050.01316.30
7.1.40.0030.00915.75
7.1.30.0100.00315.77
7.1.20.0070.00315.48
7.1.10.0100.00015.42
7.1.00.0030.04319.04
7.0.330.0090.00615.31
7.0.320.0120.00315.48
7.0.310.0030.00815.17
7.0.300.0060.00615.18
7.0.290.0110.00715.30
7.0.280.0060.00614.87
7.0.270.0000.01215.07
7.0.260.0000.01215.11
7.0.250.0030.00515.56
7.0.240.0030.01015.52
7.0.230.0090.00615.23
7.0.220.0030.00815.23
7.0.210.0000.01015.37
7.0.200.0110.00815.90
7.0.190.0100.00315.21
7.0.180.0080.00515.20
7.0.170.0140.00315.25
7.0.160.0000.01415.48
7.0.150.0000.00815.12
7.0.140.0100.00315.00
7.0.130.0110.00415.45
7.0.120.0030.01015.04
7.0.110.0030.00715.14
7.0.100.0040.01115.00
7.0.90.0060.00615.20
7.0.80.0100.00015.16
7.0.70.0000.00915.30
7.0.60.0000.02717.66
7.0.50.0100.04316.71
7.0.40.0080.04516.94
7.0.30.0270.03016.70
7.0.20.0100.02516.74
7.0.10.0140.03316.74
7.0.00.0050.03816.91
5.6.400.0060.00614.04
5.6.390.0100.00713.88
5.6.380.0000.01414.40
5.6.370.0110.00314.38
5.6.360.0070.00714.54
5.6.350.0030.00714.48
5.6.340.0030.01014.42
5.6.330.0120.00614.22
5.6.320.0030.01014.17
5.6.310.0000.01014.04
5.6.300.0070.00414.21
5.6.290.0000.01614.30
5.6.280.0070.03517.44
5.6.270.0060.00614.06
5.6.260.0030.00814.26
5.6.250.0070.00314.14
5.6.240.0080.00414.38
5.6.230.0090.00613.85
5.6.220.0000.01414.36
5.6.210.0080.03817.45
5.6.200.0110.01816.32
5.6.190.0080.02817.28
5.6.180.0150.02617.36
5.6.170.0140.03417.45
5.6.160.0040.04417.34
5.6.150.0060.02616.15
5.6.140.0080.02816.13
5.6.130.0080.04616.21
5.6.120.0080.05017.63
5.6.110.0020.02717.62
5.6.100.0050.02517.62
5.6.90.0060.03917.53
5.6.80.0050.02317.17
5.6.70.1680.02417.19
5.6.60.0070.00714.07
5.6.50.0030.01214.17
5.6.40.0030.01014.07
5.6.30.0120.00414.13
5.6.20.0030.00913.95
5.6.10.0040.01014.07
5.6.00.0110.00414.16
5.5.380.0030.00614.38
5.5.370.0000.00814.34
5.5.360.0040.00814.58
5.5.350.0050.04517.36
5.5.340.0080.04516.11
5.5.330.0020.03017.14
5.5.320.0240.03317.09
5.5.310.0130.02017.21
5.5.300.0110.02016.18
5.5.290.0080.03616.11
5.5.280.0160.03317.52
5.5.270.0040.02617.33
5.5.260.0060.04617.40
5.5.250.0020.04817.52
5.5.240.0050.02217.08
5.5.230.0060.00614.11
5.5.220.0060.00614.14
5.5.210.0000.01214.15
5.5.200.0090.00913.93
5.5.190.0100.00614.01
5.5.180.0030.01214.24
5.5.170.0030.00813.63
5.5.160.0110.00414.03
5.5.150.0000.01614.46
5.5.140.0100.00513.79
5.5.130.0130.00313.95
5.5.120.0040.01114.25
5.5.110.0070.00713.72
5.5.100.0000.01013.99
5.5.90.0060.00614.45
5.5.80.0030.01014.20
5.5.70.0120.00314.18
5.5.60.0000.01114.06
5.5.50.0150.00014.27
5.5.40.0030.01013.61
5.5.30.0090.00614.06
5.5.20.0030.01314.16
5.5.10.0100.00314.04
5.5.00.0000.00813.86
5.4.450.0410.03515.25
5.4.440.0370.03815.24
5.4.430.0350.04015.23
5.4.420.0340.03515.14
5.4.410.0400.02515.27
5.4.400.0330.03315.11
5.4.390.0280.03214.88
5.4.380.0230.03515.20
5.4.370.0300.02915.00
5.4.360.0350.03615.11
5.4.350.0260.03315.01
5.4.340.0330.02615.14
5.4.330.0000.01311.26
5.4.320.0400.03015.12
5.4.310.0300.02714.96
5.4.300.0280.03514.99
5.4.290.0330.02814.98
5.4.280.0280.03815.08
5.4.270.0380.03515.04
5.4.260.0280.03815.02
5.4.250.0360.02615.00
5.4.240.0430.03614.91
5.4.230.0370.02515.13
5.4.220.0320.02815.09
5.4.210.0310.02814.94
5.4.200.0300.02813.74
5.4.190.0320.02314.95
5.4.180.0280.02914.97
5.4.170.0320.02714.77
5.4.160.0320.02714.78
5.4.150.0220.03214.95
5.4.140.0230.02913.59
5.4.130.0230.02813.59
5.4.120.0250.02513.63
5.4.110.0250.02813.93
5.4.100.0280.04013.63
5.4.90.0220.03213.73
5.4.80.0350.03113.57
5.4.70.0330.03113.84
5.4.60.0270.02713.75
5.4.50.0280.03613.72
5.4.40.0270.02813.64
5.4.30.0350.02413.72
5.4.20.0420.03213.82
5.4.10.0320.02913.57
5.4.00.0370.02713.36

preferences:
86.82 ms | 401 KiB | 5 Q