3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler(function ($errno, $errstr) { global $errored; $errored = TRUE; return TRUE; }); $errored = FALSE; $excludedClasses = [ // These cause fatal errors on instantiation "Closure", "SQLite3", "Filter" ]; var_dump( array_filter( get_declared_classes(), function ($className) use (&$errored, $excludedClasses) { $errored = FALSE; $class = new ReflectionClass($className); if (!$class->isInstantiable() || $class->hasMethod('__construct') && (new ReflectionMethod("$className::__construct"))->isPrivate()) { return FALSE; } foreach ($excludedClasses as $bannedClass) { if (substr($className, 0, strlen($bannedClass)) === $bannedClass) { return FALSE; } } if (!(new ReflectionClass($className))->hasMethod('__toString')) { try { $x = new $className; $x = (string)$x; return $errored; } catch (Exception $e) { return FALSE; } } return FALSE; } ) );

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.0040.01118.30
8.3.50.0110.00921.20
8.3.40.0000.01518.84
8.3.30.0070.00719.16
8.3.20.0040.00420.16
8.3.10.0040.00420.53
8.3.00.0040.00419.25
8.2.180.0080.00818.66
8.2.170.0120.00322.96
8.2.160.0140.00019.20
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00422.19
8.2.110.0000.01020.48
8.2.100.0090.00317.65
8.2.90.0000.00818.16
8.2.80.0030.00517.97
8.2.70.0090.00017.63
8.2.60.0020.01017.93
8.2.50.0050.00318.07
8.2.40.0050.00318.21
8.2.30.0000.00719.16
8.2.20.0000.00817.85
8.2.10.0000.00718.20
8.2.00.0000.00817.81
8.1.280.0090.00625.92
8.1.270.0050.00323.84
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00822.25
8.1.230.0000.01120.97
8.1.220.0000.00917.79
8.1.210.0000.00819.02
8.1.200.0040.00717.35
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0040.00418.54
8.1.160.0040.00421.95
8.1.150.0040.00418.84
8.1.140.0000.00717.35
8.1.130.0030.00317.77
8.1.120.0000.00717.52
8.1.110.0000.00817.52
8.1.100.0040.00417.39
8.1.90.0000.01017.42
8.1.80.0040.00417.45
8.1.70.0000.00717.45
8.1.60.0000.00817.59
8.1.50.0060.00317.41
8.1.40.0040.00417.39
8.1.30.0000.00817.53
8.1.20.0000.00817.64
8.1.10.0040.00417.63
8.1.00.0000.00817.53
8.0.300.0070.00020.08
8.0.290.0070.00016.75
8.0.280.0030.00318.46
8.0.270.0050.00317.28
8.0.260.0000.00717.21
8.0.250.0000.00717.03
8.0.240.0070.00017.08
8.0.230.0040.00416.98
8.0.220.0030.00317.04
8.0.210.0060.00016.97
8.0.200.0030.00316.98
8.0.190.0050.00516.93
8.0.180.0020.00516.86
8.0.170.0040.00416.90
8.0.160.0050.00316.83
8.0.150.0000.00816.85
8.0.140.0050.00216.89
8.0.130.0050.00013.38
8.0.120.0040.00416.96
8.0.110.0020.00516.84
8.0.100.0000.00716.86
8.0.90.0050.00216.99
8.0.80.0040.01116.90
8.0.70.0000.00716.95
8.0.60.0000.00816.91
8.0.50.0000.00716.86
8.0.30.0130.01016.91
8.0.20.0100.01417.40
8.0.10.0050.00317.11
8.0.00.0160.01516.91
7.4.330.0050.00015.00
7.4.320.0040.00416.66
7.4.300.0030.00316.63
7.4.290.0040.00416.63
7.4.280.0060.00316.52
7.4.270.0030.00316.54
7.4.260.0080.00016.40
7.4.250.0020.00516.48
7.4.240.0060.00216.57
7.4.230.0070.00016.51
7.4.220.0060.01216.64
7.4.210.0070.00716.63
7.4.200.0060.00316.50
7.4.160.0000.01416.59
7.4.150.0120.00617.40
7.4.140.0130.00517.86
7.4.130.0130.00616.48
7.4.120.0090.00916.49
7.4.110.0100.00716.52
7.4.100.0120.00916.62
7.4.90.0100.00716.50
7.4.80.0030.01419.04
7.4.70.0040.01216.55
7.4.60.0060.01716.73
7.4.50.0050.00316.38
7.4.40.0060.01116.65
7.4.30.0040.01116.70
7.4.10.0090.01014.99
7.4.00.0070.00815.10
7.3.330.0000.00713.43
7.3.320.0000.00513.48
7.3.310.0030.00316.34
7.3.300.0030.00316.36
7.3.290.0070.01316.41
7.3.280.0070.01016.45
7.3.270.0140.00317.40
7.3.260.0170.00016.43
7.3.250.0110.00916.60
7.3.240.0030.02116.51
7.3.230.0130.00416.39
7.3.210.0040.01816.41
7.3.200.0060.00919.39
7.3.190.0030.01316.69
7.3.180.0060.00916.41
7.3.170.0060.01216.57
7.3.160.0030.01616.52
7.3.130.0100.00714.77
7.3.120.0080.00914.78
7.3.110.0090.00915.04
7.3.100.0050.00914.92
7.3.90.0070.00814.75
7.3.80.0040.01115.02
7.3.70.0100.00114.92
7.3.60.0060.01114.96
7.3.50.0050.01014.81
7.3.40.0080.00414.57
7.3.30.0090.00614.94
7.3.20.0050.01216.75
7.3.10.0070.00916.62
7.3.00.0020.01116.55
7.2.330.0130.00616.84
7.2.320.0100.00716.47
7.2.310.0120.00316.71
7.2.300.0090.00616.84
7.2.290.0070.01016.81
7.2.260.0080.01115.07
7.2.250.0080.01015.01
7.2.240.0060.00815.26
7.2.230.0070.01015.18
7.2.220.0070.00514.88
7.2.210.0060.00815.26
7.2.200.0080.00714.90
7.2.190.0060.00915.16
7.2.180.0100.00615.03
7.2.170.0090.00514.98
7.2.160.0030.01314.93
7.2.150.0070.01017.05
7.2.140.0070.00816.85
7.2.130.0060.00816.91
7.2.120.0020.01316.91
7.2.110.0020.01216.95
7.2.100.0020.01216.92
7.2.90.0060.00816.97
7.2.80.0080.00817.00
7.2.70.0050.00516.88
7.2.60.0040.01016.90
7.2.50.0070.00916.95
7.2.40.0050.00616.92
7.2.30.0060.00716.95
7.2.20.0030.01217.01
7.2.10.0060.01116.92
7.2.00.0040.00817.57
7.1.330.0060.00615.79
7.1.320.0090.00615.79
7.1.310.0090.00415.74
7.1.300.0040.01215.68
7.1.290.0060.00515.80
7.1.280.0070.00415.62
7.1.270.0050.00815.73
7.1.260.0070.00415.70
7.1.250.0060.00615.80
7.1.240.0040.00915.65
7.1.230.0080.00915.83
7.1.220.0100.00315.67
7.1.210.0060.00815.88
7.1.200.0090.00515.89
7.1.190.0040.00915.82
7.1.180.0010.01015.71
7.1.170.0060.00615.79
7.1.160.0110.00315.70
7.1.150.0070.00415.91
7.1.140.0030.00715.87
7.1.130.0050.00915.82
7.1.120.0040.00615.72
7.1.110.0050.00815.79
7.1.100.0050.00616.65
7.1.90.0060.00615.76
7.1.80.0040.00715.92
7.1.70.0040.00716.27
7.1.60.0070.01017.08
7.1.50.0060.01016.17
7.1.40.0060.00615.81
7.1.30.0030.00815.81
7.1.20.0020.01015.82
7.1.10.0070.00715.64
7.1.00.0060.03017.81
7.0.330.0050.01015.35
7.0.320.0060.00915.34
7.0.310.0070.01015.29
7.0.300.0060.00415.48
7.0.290.0060.00615.34
7.0.280.0080.00115.41
7.0.270.0020.01315.35
7.0.260.0060.00715.38
7.0.250.0050.00915.31
7.0.240.0080.00715.20
7.0.230.0080.00515.29
7.0.220.0060.00815.38
7.0.210.0030.00715.50
7.0.200.0020.00815.85
7.0.190.0060.00715.40
7.0.180.0050.00815.46
7.0.170.0070.00715.46
7.0.160.0060.00615.33
7.0.150.0020.01215.41
7.0.140.0030.03017.46
7.0.130.0050.00915.33
7.0.120.0030.00915.34
7.0.110.0050.00515.32
7.0.100.0100.00515.43
7.0.90.0030.01215.45
7.0.80.0030.01015.39
7.0.70.0080.00715.35
7.0.60.0070.02716.88
7.0.50.0030.02016.29
7.0.40.0050.02615.59
7.0.30.0120.02715.65
7.0.20.0140.03515.59
7.0.10.0040.03615.69
7.0.00.0030.02215.77
5.6.400.0090.00514.56
5.6.390.0030.01314.71
5.6.380.0070.00614.61
5.6.370.0030.01214.65
5.6.360.0070.01014.58
5.6.350.0030.01314.58
5.6.340.0030.01114.85
5.6.330.0030.01414.50
5.6.320.0100.00414.51
5.6.310.0050.01014.58
5.6.300.0070.01014.56
5.6.290.0060.00914.53
5.6.280.0090.02716.68
5.6.270.0040.00914.52
5.6.260.0050.00714.48
5.6.250.0080.01114.69
5.6.240.0050.01214.55
5.6.230.0030.00914.47
5.6.220.0030.00914.41
5.6.210.0070.03016.50
5.6.200.0100.03015.72
5.6.190.0020.02317.33
5.6.180.1220.01717.44
5.6.170.0150.02917.28
5.6.160.0060.02717.29
5.6.150.0030.02215.88
5.6.140.0040.02115.89
5.6.130.0060.03015.88
5.6.120.0090.03316.73
5.6.110.0040.02116.75
5.6.100.0110.02816.76
5.6.90.0070.03616.85
5.6.80.0080.02916.47
5.6.70.0100.01716.49
5.6.60.0050.00714.36
5.6.50.0070.00414.45
5.6.40.0070.00714.66
5.6.30.0030.00914.30
5.6.20.0050.00914.34
5.6.10.0060.00914.30
5.6.00.0050.00814.64
5.5.380.0060.00914.54
5.5.370.0030.01114.47
5.5.360.0080.00714.39
5.5.350.0170.02916.46
5.5.340.0060.03115.58
5.5.330.0110.02917.02
5.5.320.0150.02817.06
5.5.310.0090.02017.00
5.5.300.0040.01815.65
5.5.290.0110.02715.68
5.5.280.0070.02416.50
5.5.270.0040.02516.60
5.5.260.0050.03316.58
5.5.250.0050.01816.55
5.5.240.0130.01716.31
5.5.230.0060.00614.34
5.5.220.0040.01214.30
5.5.210.0050.00814.33
5.5.200.0020.01214.28
5.5.190.0020.00914.42
5.5.180.0070.00714.63
5.5.170.0070.00714.44
5.5.160.0080.00714.45
5.5.150.0080.00514.49
5.5.140.0090.01014.56
5.5.130.0060.00914.48
5.5.120.0080.00814.36
5.5.110.0020.01414.30
5.5.100.0110.00514.38
5.5.90.0070.00814.20
5.5.80.0060.01114.44
5.5.70.0020.01414.39
5.5.60.0060.00614.46
5.5.50.0070.00814.53
5.5.40.0030.01214.46
5.5.30.0060.00814.29
5.5.20.0050.00914.23
5.5.10.0020.01014.33
5.5.00.0040.00914.40
5.4.450.0390.02614.72
5.4.440.0330.02714.65
5.4.430.0380.02214.58
5.4.420.0240.00514.73
5.4.410.0250.00414.61
5.4.400.0260.00514.58
5.4.390.0250.00314.47
5.4.380.0100.02714.44
5.4.370.0160.02014.47
5.4.360.0120.02514.31
5.4.350.0170.02014.47
5.4.340.0210.02614.33
5.4.330.0050.00611.87
5.4.320.0050.01812.08
5.4.310.0050.01912.14
5.4.300.0060.01712.21
5.4.290.0070.01912.12
5.4.280.0060.01712.18
5.4.270.0040.01612.09
5.4.260.0040.01712.04
5.4.250.0040.02012.09
5.4.240.0050.01812.06
5.4.230.0060.01712.13
5.4.220.0030.01812.15
5.4.210.0030.01912.03
5.4.200.0030.02112.09
5.4.190.0020.01912.04
5.4.180.0100.01312.08
5.4.170.0080.01412.13
5.4.160.0040.01811.98
5.4.150.0070.01512.03
5.4.140.0050.01912.02
5.4.130.0070.01512.01
5.4.120.0050.02012.01
5.4.110.0050.01611.90
5.4.100.0060.01411.86
5.4.90.0070.01612.00
5.4.80.0020.02111.99
5.4.70.0040.01812.00
5.4.60.0040.02011.94
5.4.50.0040.01711.91
5.4.40.0060.01411.99
5.4.30.0040.01811.94
5.4.20.0060.01611.93
5.4.10.0030.02211.88
5.4.00.0080.01711.74
5.3.290.0040.04212.80
5.3.280.0090.03412.71
5.3.270.0110.03512.72
5.3.260.0090.04312.72
5.3.250.0050.03712.72
5.3.240.0070.04512.72
5.3.230.0050.03812.71
5.3.220.0060.03612.68
5.3.210.0100.03712.68
5.3.200.0110.03212.68
5.3.190.0080.03712.68
5.3.180.0080.03512.67
5.3.170.0060.03712.67
5.3.160.0050.04212.67
5.3.150.0070.03612.67
5.3.140.0070.03712.66
5.3.130.0070.03812.66
5.3.120.0060.04212.66
5.3.110.0070.04412.65
5.3.100.0050.03712.12
5.3.90.0050.04112.11
5.3.80.0040.03812.10
5.3.70.0050.03712.09
5.3.60.0060.03512.08
5.3.50.0080.03312.02
5.3.40.0100.03812.02
5.3.30.0040.03611.98
5.3.20.0070.03711.77
5.3.10.0050.03511.73
5.3.00.0070.03511.72
5.2.170.0030.0329.18
5.2.160.0050.0409.18
5.2.150.0050.0299.18
5.2.140.0040.0309.18
5.2.130.0060.0319.14
5.2.120.0050.0379.14
5.2.110.0020.0349.15
5.2.100.0050.0369.14
5.2.90.0080.0289.14
5.2.80.0070.0419.14
5.2.70.0050.0299.13
5.2.60.0060.0359.09
5.2.50.0020.0329.06
5.2.40.0030.0299.04
5.2.30.0060.0289.02
5.2.20.0060.0269.00
5.2.10.0110.0248.93
5.2.00.0080.0288.79
5.1.60.0040.0288.07
5.1.50.0070.0308.07
5.1.40.0060.0228.05
5.1.30.0050.0278.40
5.1.20.0100.0258.42
5.1.10.0030.0268.14
5.1.00.0070.0278.14
5.0.50.0020.0266.62
5.0.40.0050.0256.48
5.0.30.0040.0316.29
5.0.20.0020.0236.26
5.0.10.0040.0236.24
5.0.00.0040.0386.23
4.4.90.0040.0174.78
4.4.80.0020.0154.75
4.4.70.0040.0204.75
4.4.60.0030.0154.76
4.4.50.0020.0154.77
4.4.40.0040.0404.71
4.4.30.0040.0244.76
4.4.20.0020.0164.84
4.4.10.0060.0234.85
4.4.00.0040.0284.75
4.3.110.0030.0164.67
4.3.100.0040.0144.66
4.3.90.0020.0164.63
4.3.80.0030.0244.59
4.3.70.0030.0184.63
4.3.60.0030.0204.63
4.3.50.0010.0174.63
4.3.40.0030.0234.54
4.3.30.0020.0163.29
4.3.20.0050.0143.27
4.3.10.0030.0143.22
4.3.00.0170.0177.18

preferences:
69.39 ms | 401 KiB | 5 Q