3v4l.org

run code in 300+ PHP versions simultaneously
<?php // In response to http://www.php.net/manual/en/language.constants.predefined.php#113130 // In fact, you can define magic constants too. (@__DIR__ == '__DIR__') && define('__DIR__', dirname(__FILE__)); echo "result of var_dump(__DIR__):\r\n"; var_dump(__DIR__);

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.1.90.0000.00717.38
8.1.80.0060.00317.17
8.1.70.0000.00717.41
8.1.60.0000.01217.41
8.1.50.0050.00317.35
8.1.40.0040.00417.45
8.1.30.0000.00817.50
8.1.20.0020.00517.56
8.1.10.0040.00417.43
8.1.00.0050.00317.42
8.0.220.0050.00216.70
8.0.210.0030.00316.80
8.0.200.0000.00716.82
8.0.190.0000.00816.79
8.0.180.0000.00716.77
8.0.170.0000.00916.87
8.0.160.0000.00716.71
8.0.150.0040.00416.77
8.0.140.0040.00716.63
8.0.130.0000.00613.16
8.0.120.0030.00516.80
8.0.110.0050.00216.81
8.0.100.0080.00016.84
8.0.90.0000.00816.62
8.0.80.0110.01116.77
8.0.70.0000.00716.61
8.0.60.0030.00416.88
8.0.50.0030.00516.69
8.0.30.0120.01216.89
8.0.20.0070.01717.40
8.0.10.0000.00716.82
8.0.00.0030.01416.68
7.4.300.0030.00316.50
7.4.290.0030.00316.47
7.4.280.0000.00716.52
7.4.270.0000.00716.33
7.4.260.0030.00316.46
7.4.250.0040.00416.48
7.4.240.0020.00516.45
7.4.230.0070.00016.61
7.4.220.0070.00016.22
7.4.210.0030.01016.48
7.4.200.0030.00316.53
7.4.160.0140.00816.27
7.4.150.0140.00317.40
7.4.140.0120.00517.86
7.4.130.0090.00816.40
7.4.120.0050.01116.40
7.4.110.0030.01416.53
7.4.100.0100.00716.46
7.4.90.0040.01416.25
7.4.80.0060.01519.39
7.4.70.0000.01716.35
7.4.60.0140.00416.31
7.4.50.0000.00916.09
7.4.40.0140.00716.19
7.4.30.0100.01016.36
7.4.00.0070.01114.96
7.3.330.0020.00212.92
7.3.320.0030.00313.01
7.3.310.0040.00415.95
7.3.300.0000.00716.04
7.3.290.0030.01016.16
7.3.280.0070.01016.15
7.3.270.0070.01017.40
7.3.260.0180.00916.39
7.3.250.0090.00816.15
7.3.240.0140.00516.17
7.3.230.0100.00716.40
7.3.210.0100.00716.36
7.3.200.0070.01019.39
7.3.190.0090.00616.26
7.3.180.0120.00416.13
7.3.170.0120.00616.27
7.3.160.0030.01216.46
7.3.120.0080.00814.58
7.3.110.0050.00914.60
7.3.100.0080.00614.73
7.3.90.0030.00814.46
7.3.80.0050.00914.61
7.3.70.0050.00714.52
7.3.60.0090.00614.66
7.3.50.0080.00614.53
7.3.40.0070.00414.63
7.3.30.0060.00814.74
7.3.20.0100.00516.41
7.3.10.0050.01216.38
7.3.00.0070.01016.57
7.2.330.0060.01116.64
7.2.320.0140.00316.32
7.2.310.0080.01116.53
7.2.300.0090.00616.29
7.2.290.0140.00616.60
7.2.240.0090.00814.65
7.2.230.0100.00514.77
7.2.220.0060.00814.69
7.2.210.0090.00614.79
7.2.200.0040.01114.79
7.2.190.0050.01214.82
7.2.180.0070.00914.73
7.2.170.0080.00714.96
7.2.160.0060.01014.71
7.2.150.0080.00716.79
7.2.140.0080.00816.82
7.2.130.0050.00716.80
7.2.120.0090.00916.67
7.2.110.0020.01116.80
7.2.100.0080.00816.67
7.2.90.0080.00916.91
7.2.80.0100.00716.62
7.2.70.0050.00816.78
7.2.60.0080.00716.83
7.2.50.0070.00716.63
7.2.40.0050.01016.76
7.2.30.0080.00616.85
7.2.20.0090.00316.83
7.2.10.0060.00816.59
7.2.00.0080.00816.75
7.1.330.0050.00915.71
7.1.320.0030.01015.62
7.1.310.0080.00615.55
7.1.300.0050.00515.66
7.1.290.0080.00715.67
7.1.280.0050.01015.59
7.1.270.0080.00815.85
7.1.260.0040.01215.76
7.1.250.0110.00515.85
7.1.200.0070.00715.66
7.1.100.0060.00317.81
7.1.70.0000.01117.09
7.1.60.0040.00716.87
7.1.50.0030.00916.98
7.1.40.0100.01016.29
7.1.30.0040.00816.44
7.1.20.0130.00016.66
7.1.10.0000.00816.55
7.1.00.0000.00816.83
7.0.200.0030.00516.81
7.0.190.0000.01016.75
7.0.180.0060.00916.19
7.0.170.0000.01416.27
7.0.160.0000.00816.19
7.0.150.0030.00516.16
7.0.140.0030.00516.12
7.0.130.0050.00216.52
7.0.120.0000.00816.48
7.0.110.0070.00316.09
7.0.100.0090.00616.14
7.0.90.0000.00816.45
7.0.80.0000.00916.39
7.0.70.0000.00816.23
7.0.60.0000.01016.06
7.0.50.0000.00816.51
7.0.40.0060.01015.59
7.0.30.0040.01115.59
7.0.20.0030.00715.59
7.0.10.0000.01115.59
7.0.00.0000.00915.59
5.6.300.0070.04020.74
5.6.290.0000.04620.83
5.6.280.0030.04320.90
5.6.270.0000.04321.03
5.6.260.0030.05020.77
5.6.250.0030.04320.96
5.6.240.0030.05320.88
5.6.230.0200.04420.95
5.6.220.0000.05120.95
5.6.210.0000.04420.57
5.6.200.0000.06820.86
5.6.190.0030.05920.76
5.6.180.0100.08320.83
5.6.170.0030.06220.85
5.6.160.0030.04721.02
5.6.150.0000.04620.82
5.6.140.0030.04120.85
5.6.130.0070.03920.90
5.6.120.0030.04520.81
5.6.110.0030.04220.84
5.6.100.0030.04020.80
5.6.90.0140.03720.91
5.6.80.0060.04120.24
5.6.70.0030.03820.35
5.6.60.0030.03820.41
5.6.50.0000.04120.43
5.6.40.0070.04420.38
5.6.30.0030.03820.18
5.6.20.0060.03520.21
5.6.10.0070.03620.07
5.6.00.0070.03720.30
5.5.380.0030.04117.47
5.5.370.0030.04017.45
5.5.360.0030.05217.54
5.5.350.0000.04417.53
5.5.340.0000.06617.84
5.5.330.0070.04718.03
5.5.320.0030.04818.02
5.5.310.0070.03618.02
5.5.300.0000.04417.95
5.5.290.0070.03817.99
5.5.280.0030.04218.04
5.5.270.0100.03317.96
5.5.260.0070.03617.85
5.5.250.0030.03917.50
5.5.240.0000.04017.45
5.5.230.0030.04217.32
5.5.220.0030.04517.12
5.5.210.0000.04317.44
5.5.200.0000.03917.05
5.5.190.0030.03817.32
5.5.180.0000.04117.38
5.5.160.0190.02817.30
5.5.150.0000.05517.38
5.5.140.0070.03617.21
5.5.130.0030.03617.43
5.5.120.0000.04017.32
5.5.110.0070.03617.30
5.5.100.0070.03417.29
5.5.90.0030.03617.25
5.5.80.0030.03517.22
5.5.70.0030.04117.26
5.5.60.0030.03717.36
5.5.50.0070.03317.29
5.5.40.0070.03317.21
5.5.30.0030.04217.17
5.5.20.0000.04417.30
5.5.10.0070.04417.09
5.5.00.0070.05617.25
5.4.450.0030.04119.40
5.4.440.0130.03219.40
5.4.430.0030.03719.30
5.4.420.0030.03919.44
5.4.410.0030.06519.36
5.4.400.0000.03918.94
5.4.390.0030.03719.13
5.4.380.0000.04218.99
5.4.370.0060.03218.86
5.4.360.0030.03718.91
5.4.350.0030.03618.83
5.4.340.0000.04119.14
5.4.320.0140.03419.14
5.4.310.0000.04118.85
5.4.300.0000.04419.14
5.4.290.0040.03519.01
5.4.280.0060.03419.14
5.4.270.0070.03319.15
5.4.260.0000.04218.88
5.4.250.0000.03918.98
5.4.240.0030.04219.00
5.4.230.0130.03919.04
5.4.220.0000.04519.06
5.4.210.0070.03318.90
5.4.200.0000.04819.06
5.4.190.0030.03718.96
5.4.180.0030.04519.15
5.4.170.0170.03718.86
5.4.160.0100.07418.82
5.4.150.0000.04418.81
5.4.140.0000.05216.67
5.4.130.0000.03816.50
5.4.120.0030.03516.44
5.4.110.0030.03616.50
5.4.100.0030.04016.35
5.4.90.0000.08016.61
5.4.80.0070.03316.33
5.4.70.0000.03616.56
5.4.60.0030.03716.48
5.4.50.0030.03816.57
5.4.40.0000.04316.38
5.4.30.0070.03216.54
5.4.20.0030.03516.48
5.4.10.0000.03816.55
5.4.00.0030.03815.88
5.3.290.0070.03315.59
5.3.280.0000.04315.59
5.3.270.0000.05515.59
5.3.260.0070.04715.59
5.3.250.0030.03915.59
5.3.240.0070.03315.59
5.3.230.0000.04515.59
5.3.220.0000.04015.59
5.3.210.0030.04115.59
5.3.200.0030.03615.59
5.3.190.0070.06915.59
5.3.180.0000.04415.59
5.3.170.0000.03915.59
5.3.160.0060.03715.59
5.3.150.0070.03315.59
5.3.140.0030.03615.59
5.3.130.0030.04115.59
5.3.120.0030.04515.59
5.3.110.0000.04215.59
5.3.100.0000.04015.59
5.3.90.0030.03415.59
5.3.80.0030.03415.59
5.3.70.0000.04315.59
5.3.60.0230.02715.59
5.3.50.0000.03615.59
5.3.40.0040.03915.59
5.3.30.0030.03315.59
5.3.20.0000.03915.59
5.3.10.0030.03415.59
5.3.00.0030.03615.59
5.2.170.0060.02515.59
5.2.160.0070.02615.59
5.2.150.0030.03115.59
5.2.140.0000.03015.59
5.2.130.0200.02415.59
5.2.120.0000.04115.59
5.2.110.0000.03015.59
5.2.100.0000.02915.59
5.2.90.0030.03115.59
5.2.80.0070.02415.59
5.2.70.0030.02815.59
5.2.60.0100.02615.59
5.2.50.0030.02615.59
5.2.40.0000.03215.59
5.2.30.0000.03315.59
5.2.20.0130.01915.59
5.2.10.0030.03015.59
5.2.00.0000.03215.59
5.1.60.0030.02815.59
5.1.50.0000.03215.59
5.1.40.0000.02615.59
5.1.30.0000.03215.59
5.1.20.0030.02615.59
5.1.10.0000.03215.59
5.1.00.0030.02515.59
5.0.50.0060.01615.59
5.0.40.0030.02215.59
5.0.30.0070.03015.59
5.0.20.0030.01715.59
5.0.10.0100.01615.59
5.0.00.0100.02415.59
4.4.90.0000.02715.59
4.4.80.0000.01715.59
4.4.70.0000.01715.59
4.4.60.0070.02515.59
4.4.50.0030.01915.59
4.4.40.0100.02815.59
4.4.30.0000.01815.59
4.4.20.0000.01715.59
4.4.10.0100.01315.59
4.4.00.0040.02915.59
4.3.110.0030.01615.59
4.3.100.0070.01115.59
4.3.90.0000.01715.59
4.3.80.0000.02615.59
4.3.70.0000.01715.59
4.3.60.0100.01015.59
4.3.50.0040.01515.59
4.3.40.0060.02515.59
4.3.30.0030.01515.59
4.3.20.0000.02015.59
4.3.10.0000.01715.59
4.3.00.0030.01315.59

preferences:
12.81 ms | 406 KiB | 5 Q