3v4l.org

run code in 300+ PHP versions simultaneously
<?php $corban_notice = false; if (!function_exists('cd')) { function cd($var) { global $corban_notice; if (!isset($var)) { if ($corban_notice) { echo 'cd: Variable is not set'.PHP_EOL; $corban_notice = false; } else { echo 'cd: Variable is NULL'.PHP_EOL; } } } } function corban_error_handler($errno , $errstr, $errfile, $errline) { global $corban_notice; if ( version_compare(PHP_VERSION, '5.0.0', '>=') ) { $file = new SplFileObject($errfile); $file->seek($errline-1); $c = substr(trim($file->current()), 0, 3); if ($c=='cd(' || $c=='cd ') { $corban_notice = true; } } return false; } set_error_handler ('corban_error_handler', E_NOTICE); var_dump($a); $b = null; cd($a); cd($b);

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.00918.55
8.3.50.0100.00821.87
8.3.40.0110.00418.77
8.3.30.0030.01218.92
8.3.20.0070.00020.33
8.3.10.0050.00321.85
8.3.00.0080.00017.80
8.2.180.0070.00716.75
8.2.170.0030.01522.96
8.2.160.0090.00920.22
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0070.00021.16
8.2.110.0080.00822.25
8.2.100.0040.00718.22
8.2.90.0050.00319.28
8.2.80.0040.00417.97
8.2.70.0000.00917.75
8.2.60.0000.00817.80
8.2.50.0060.00318.07
8.2.40.0080.00018.28
8.2.30.0030.00618.21
8.2.20.0000.00817.66
8.2.10.0040.00418.07
8.2.00.0040.00417.82
8.1.280.0000.01425.92
8.1.270.0050.00323.79
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0030.00622.13
8.1.230.0110.00019.23
8.1.220.0040.00417.79
8.1.210.0000.00818.77
8.1.200.0000.01117.35
8.1.190.0050.00317.36
8.1.180.0000.00818.10
8.1.170.0030.00618.71
8.1.160.0070.00021.99
8.1.150.0020.00518.97
8.1.140.0070.00217.49
8.1.130.0030.00317.91
8.1.120.0070.00017.54
8.1.110.0040.00417.45
8.1.100.0030.00317.51
8.1.90.0040.00417.51
8.1.80.0000.00817.39
8.1.70.0030.00317.54
8.1.60.0030.00617.65
8.1.50.0040.00417.52
8.1.40.0040.00417.54
8.1.30.0080.00017.52
8.1.20.0080.00017.71
8.1.10.0000.00717.45
8.1.00.0030.00617.36
8.0.300.0070.00018.77
8.0.290.0060.00316.88
8.0.280.0000.00718.50
8.0.270.0030.00317.36
8.0.260.0060.00017.30
8.0.250.0030.00316.93
8.0.240.0000.00717.10
8.0.230.0030.00517.11
8.0.220.0070.00016.86
8.0.210.0000.00716.98
8.0.200.0060.00016.95
8.0.190.0000.00717.02
8.0.180.0040.00417.04
8.0.170.0040.00417.05
8.0.160.0000.00717.00
8.0.150.0000.00816.89
8.0.140.0080.00016.99
8.0.130.0000.00513.39
8.0.120.0090.00016.95
8.0.110.0000.00717.00
8.0.100.0050.00316.80
8.0.90.0000.00817.09
8.0.80.0090.00917.06
8.0.70.0030.00516.98
8.0.60.0040.00417.06
8.0.50.0000.00716.88
8.0.30.0110.00817.24
8.0.20.0090.00917.40
8.0.10.0000.00717.11
8.0.00.0100.00716.87
7.4.330.0050.00015.14
7.4.320.0030.00316.50
7.4.300.0000.00616.57
7.4.290.0060.00316.57
7.4.280.0040.00416.57
7.4.270.0000.00716.69
7.4.260.0070.00016.68
7.4.250.0000.00716.53
7.4.240.0030.00316.56
7.4.230.0000.00716.41
7.4.220.0180.00916.77
7.4.210.0100.00516.50
7.4.200.0000.00816.79
7.4.160.0080.00816.65
7.4.150.0090.00917.40
7.4.140.0120.00917.86
7.4.130.0120.00516.60
7.4.120.0060.01216.67
7.4.110.0140.00716.63
7.4.100.0160.01016.43
7.4.90.0090.00916.70
7.4.80.0090.00919.39
7.4.70.0000.01616.47
7.4.60.0160.00016.64
7.4.50.0030.00616.76
7.4.40.0070.01016.61
7.4.30.0040.01716.64
7.4.10.0110.00714.86
7.4.00.0080.00715.04
7.3.330.0030.00313.34
7.3.320.0000.00513.35
7.3.310.0000.00716.20
7.3.300.0050.00216.32
7.3.290.0080.00816.45
7.3.280.0070.01316.43
7.3.270.0070.01117.40
7.3.260.0080.00816.57
7.3.250.0140.00716.65
7.3.240.0160.00416.54
7.3.230.0120.00616.47
7.3.210.0100.01016.70
7.3.200.0150.00919.39
7.3.190.0090.00916.42
7.3.180.0070.01416.51
7.3.170.0110.00616.66
7.3.160.0090.00616.48
7.3.130.0030.01514.93
7.3.120.0050.01414.91
7.3.110.0100.00714.63
7.3.100.0030.00615.11
7.3.90.0000.01514.93
7.3.80.0100.00315.05
7.3.70.0000.01014.91
7.3.60.0000.01415.04
7.3.50.0110.00415.00
7.3.40.0070.00414.74
7.3.30.0030.01014.91
7.3.20.0100.00716.87
7.3.10.0070.01016.78
7.3.00.0060.01016.49
7.2.330.0130.00716.57
7.2.320.0130.00616.74
7.2.310.0070.01716.71
7.2.300.0040.01816.81
7.2.290.0130.00916.49
7.2.260.0120.00415.19
7.2.250.0060.01014.79
7.2.240.0130.00314.87
7.2.230.0070.00714.87
7.2.220.0000.01215.17
7.2.210.0030.00915.14
7.2.200.0070.00715.10
7.2.190.0070.01015.17
7.2.180.0060.01014.88
7.2.170.0100.00015.04
7.2.160.0000.01415.10
7.2.150.0070.00716.91
7.2.140.0030.01417.02
7.2.130.0060.00916.98
7.2.120.0140.00416.96
7.2.110.0070.00316.86
7.2.100.0080.00416.90
7.2.90.0040.01516.72
7.2.80.0030.01016.90
7.2.70.0070.01016.74
7.2.60.0080.00916.98
7.2.50.0080.00416.96
7.2.40.0030.01016.68
7.2.30.0040.00816.99
7.2.20.0070.01016.95
7.2.10.0000.00917.04
7.2.00.0060.00816.97
7.1.330.0110.00315.93
7.1.320.0070.00715.82
7.1.310.0000.01115.76
7.1.300.0070.00715.86
7.1.290.0100.00016.03
7.1.280.0060.00315.75
7.1.270.0070.00715.51
7.1.260.0070.01015.89
7.1.250.0070.00715.90
7.1.240.0070.00415.93
7.1.230.0090.00615.81
7.1.220.0060.00915.80
7.1.210.0060.00915.63
7.1.200.0020.01215.86
7.1.190.0080.00915.89
7.1.180.0040.01115.57
7.1.170.0100.00715.44
7.1.160.0030.00915.98
7.1.150.0060.00915.98
7.1.140.0090.00315.85
7.1.130.0030.00915.98
7.1.120.0030.00715.96
7.1.110.0140.00315.73
7.1.100.0060.00315.44
7.1.90.0040.01115.76
7.1.80.0040.01115.89
7.1.70.0020.01116.53
7.1.60.0120.00917.40
7.1.50.0050.01116.17
7.1.40.0000.01215.99
7.1.30.0100.00315.65
7.1.20.0090.00915.79
7.1.10.0040.01115.88
7.1.00.0080.03619.02
7.0.330.0080.00615.63
7.0.320.0090.00615.25
7.0.310.0000.00915.21
7.0.300.0070.00315.30
7.0.290.0000.01715.32
7.0.280.0070.00715.57
7.0.270.0090.00615.46
7.0.260.0060.00915.50
7.0.250.0030.01015.20
7.0.240.0030.00915.42
7.0.230.0070.00715.64
7.0.220.0030.01315.52
7.0.210.0040.01115.42
7.0.200.0060.00616.04
7.0.190.0000.00915.58
7.0.180.0070.00715.62
7.0.170.0040.01115.25
7.0.160.0030.01015.39
7.0.150.0040.00715.51
7.0.140.0020.04418.84
7.0.130.0060.00615.55
7.0.120.0080.00415.40
7.0.110.0040.00815.53
7.0.100.0000.01015.53
7.0.90.0070.00715.17
7.0.80.0000.01515.40
7.0.70.0090.00315.53
7.0.60.0110.04017.77
7.0.50.0070.03716.68
7.0.40.0090.02216.88
7.0.30.0180.04016.88
7.0.20.0180.04416.80
7.0.10.0070.02416.76
7.0.00.0070.04716.80
5.6.400.0030.00714.34
5.6.390.0060.01214.49
5.6.380.0060.00914.48
5.6.370.0030.00914.69
5.6.360.0000.01214.07
5.6.350.0040.00814.62
5.6.340.0000.01414.55
5.6.330.0060.00614.27
5.6.320.0060.00314.67
5.6.310.0070.00814.74
5.6.300.0040.00814.25
5.6.290.0080.00414.57
5.6.280.0050.04017.79
5.6.270.0070.00714.31
5.6.260.0030.00614.22
5.6.250.0000.01314.04
5.6.240.0070.00714.40
5.6.230.0060.01014.46
5.6.220.0000.01014.60
5.6.210.0000.03117.55
5.6.200.0020.05116.28
5.6.190.0050.04117.58
5.6.180.1800.02617.41
5.6.170.0160.02817.51
5.6.160.0070.04317.44
5.6.150.0060.02316.40
5.6.140.0050.04216.30
5.6.130.0130.03016.28
5.6.120.0120.04217.85
5.6.110.0030.04817.72
5.6.100.0070.04617.73
5.6.90.0100.02517.66
5.6.80.0040.04517.44
5.6.70.1830.02117.48
5.6.60.0060.00914.13
5.6.50.0060.00314.16
5.6.40.0000.01314.38
5.6.30.0030.01214.01
5.6.20.0110.00414.19
5.6.10.0100.00314.22
5.6.00.0050.00514.24
5.5.380.0100.00713.99
5.5.370.0090.00314.35
5.5.360.0030.00914.29
5.5.350.0110.04217.24
5.5.340.0030.02716.14
5.5.330.0050.03317.20
5.5.320.1620.02517.29
5.5.310.0170.04117.44
5.5.300.0050.02316.15
5.5.290.0100.04516.22
5.5.280.0060.04517.57
5.5.270.0120.03917.74
5.5.260.0070.02317.43
5.5.250.0060.04517.38
5.5.240.0220.03517.23
5.5.230.0070.01013.97
5.5.220.0040.01114.38
5.5.210.0060.01014.51
5.5.200.0080.00314.21
5.5.190.0150.00014.37
5.5.180.0060.00914.43
5.5.170.0000.01513.89
5.5.160.0040.01114.16
5.5.150.0040.01114.41
5.5.140.0120.00314.10
5.5.130.0100.00713.81
5.5.120.0040.00714.38
5.5.110.0080.00314.27
5.5.100.0080.00814.45
5.5.90.0090.00614.12
5.5.80.0080.00614.07
5.5.70.0040.00814.17
5.5.60.0130.00314.15
5.5.50.0030.00614.45
5.5.40.0080.00614.00
5.5.30.0030.00614.19
5.5.20.0060.00614.11
5.5.10.0100.00714.32
5.5.00.0120.00014.25
5.4.450.0310.03116.13
5.4.440.0100.03016.14
5.4.430.0170.02516.23
5.4.420.0080.02416.23
5.4.410.0130.02516.18
5.4.400.0250.02015.95
5.4.390.0170.02616.01
5.4.380.0120.03315.81
5.4.370.0050.03415.71
5.4.360.0180.02015.68
5.4.350.0130.03015.76
5.4.340.0060.03115.76
5.4.330.0040.00712.83
5.4.320.0030.03112.67
5.4.310.0050.02412.67
5.4.300.0040.02512.67
5.4.290.0050.02212.67
5.4.280.0040.02112.62
5.4.270.0030.02712.62
5.4.260.0020.02212.62
5.4.250.0030.02412.62
5.4.240.0060.01912.62
5.4.230.0060.02012.62
5.4.220.0050.02112.62
5.4.210.0060.02212.61
5.4.200.0080.02112.61
5.4.190.0070.02012.61
5.4.180.0090.01812.62
5.4.170.0090.01812.62
5.4.160.0070.01912.62
5.4.150.0020.02312.61
5.4.140.0060.02612.46
5.4.130.0050.02212.45
5.4.120.0040.02012.43
5.4.110.0040.02212.43
5.4.100.0040.02812.43
5.4.90.0060.02312.43
5.4.80.0070.02012.43
5.4.70.0050.02212.42
5.4.60.0090.01812.43
5.4.50.0040.02412.43
5.4.40.0060.02312.42
5.4.30.0020.02212.42
5.4.20.0060.02112.42
5.4.10.0080.02212.42
5.4.00.0060.02112.16
5.3.290.0060.02212.81
5.3.280.0050.02412.77
5.3.270.0040.02412.78
5.3.260.0050.02212.78
5.3.250.0070.01912.78
5.3.240.0020.02212.78
5.3.230.0040.02312.77
5.3.220.0040.02512.76
5.3.210.0080.02712.75
5.3.200.0040.03012.76
5.3.190.0040.02312.75
5.3.180.0040.02612.75
5.3.170.0090.02312.75
5.3.160.0040.02412.75
5.3.150.0050.02412.75
5.3.140.0080.02112.75
5.3.130.0040.02312.74
5.3.120.0070.02212.75
5.3.110.0070.02312.75
5.3.100.0090.02112.48
5.3.90.0060.02012.47
5.3.80.0070.02512.46
5.3.70.0050.02312.46
5.3.60.0020.02212.46
5.3.50.0040.02212.43
5.3.40.0050.02512.43
5.3.30.0040.02312.41
5.3.20.0040.02012.30
5.3.10.0050.02112.29
5.3.00.0050.02412.28
5.2.170.0050.0319.23
5.2.160.0050.0309.23
5.2.150.0090.0369.23
5.2.140.0050.0319.22
5.2.130.0070.0309.18
5.2.120.0070.0269.18
5.2.110.0040.0319.19
5.2.100.0020.0379.19
5.2.90.0060.0319.19
5.2.80.0040.0319.19
5.2.70.0050.0309.18
5.2.60.0070.0289.14
5.2.50.0030.0339.11
5.2.40.0030.0369.09
5.2.30.0060.0299.06
5.2.20.0100.0329.05
5.2.10.0040.0308.96
5.2.00.0050.0338.82
5.1.60.0060.0248.11
5.1.50.0070.0238.10
5.1.40.0080.0438.08
5.1.30.0080.0368.43
5.1.20.0070.0288.45
5.1.10.0060.0298.18
5.1.00.0040.0298.18
5.0.50.0040.0226.65
5.0.40.0040.0196.51
5.0.30.0040.0356.33
5.0.20.0040.0196.29
5.0.10.0050.0196.28
5.0.00.0030.0316.27
4.4.90.0030.0204.78
4.4.80.0050.0194.75
4.4.70.0060.0184.76
4.4.60.0030.0174.75
4.4.50.0030.0204.77
4.4.40.0040.0244.71
4.4.30.0030.0154.76
4.4.20.0040.0184.84
4.4.10.0070.0204.85
4.4.00.0040.0314.76
4.3.110.0030.0174.67
4.3.100.0030.0164.66
4.3.90.0040.0134.63
4.3.80.0030.0264.59
4.3.70.0050.0194.63
4.3.60.0050.0194.63
4.3.50.0050.0194.63
4.3.40.0030.0284.54
4.3.30.0050.0193.31
4.3.20.0040.0193.29
4.3.10.0020.0183.25
4.3.00.0100.01715.26

preferences:
46.55 ms | 401 KiB | 5 Q