3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler(function ($errno, $errstr) { global $errored; $errored = TRUE; return TRUE; }); $errored = FALSE; var_dump( array_filter( get_declared_classes(), function ($className) use (&$errored) { $errored = FALSE; if (!(new ReflectionClass($className))->hasMethod('__toString') && $className !== "Closure" && substr($className, 7) !== "SQLite3") { 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.40.0070.00718.92
8.3.30.0110.00719.27
8.3.20.0090.00020.10
8.3.10.0080.00020.57
8.3.00.0080.00019.26
8.2.170.0070.00722.96
8.2.160.0070.00719.20
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00022.09
8.2.110.0060.00322.43
8.2.100.0000.01217.91
8.2.90.0030.00519.13
8.2.80.0050.00317.97
8.2.70.0040.00417.63
8.2.60.0070.00418.04
8.2.50.0040.00418.07
8.2.40.0080.00018.15
8.2.30.0030.00519.35
8.2.20.0000.00717.70
8.2.10.0050.00218.18
8.2.00.0000.00717.78
8.1.270.0050.00324.00
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0090.00023.97
8.1.230.0030.00719.02
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0060.00317.36
8.1.190.0080.00017.35
8.1.180.0030.00618.10
8.1.170.0060.00318.66
8.1.160.0030.00622.08
8.1.150.0040.00418.91
8.1.140.0000.00717.41
8.1.130.0000.00717.91
8.1.120.0030.00417.40
8.1.110.0000.00817.54
8.1.100.0070.00017.49
8.1.90.0040.00417.55
8.1.80.0050.00217.52
8.1.70.0030.00317.41
8.1.60.0070.00017.63
8.1.50.0090.00017.55
8.1.40.0030.00517.43
8.1.30.0080.00017.55
8.1.20.0000.00717.62
8.1.10.0000.00817.61
8.1.00.0040.00417.40
8.0.300.0070.00018.77
8.0.290.0070.00016.88
8.0.280.0030.00318.52
8.0.270.0000.00717.27
8.0.260.0030.00317.15
8.0.250.0000.00717.08
8.0.240.0050.00316.91
8.0.230.0000.00717.04
8.0.220.0050.00216.83
8.0.210.0000.00717.02
8.0.200.0050.00316.96
8.0.190.0060.00316.94
8.0.180.0000.00817.00
8.0.170.0050.00217.03
8.0.160.0000.00716.98
8.0.150.0000.00716.88
8.0.140.0040.00416.89
8.0.130.0060.00013.45
8.0.120.0080.00016.96
8.0.110.0040.00416.93
8.0.100.0000.00816.84
8.0.90.0040.00417.04
8.0.80.0090.00617.02
8.0.70.0040.00417.02
8.0.60.0000.00716.87
8.0.50.0070.00016.77
8.0.30.0150.00516.99
8.0.20.0080.01417.40
8.0.10.0000.00817.21
8.0.00.0100.00916.77
7.4.330.0050.00015.15
7.4.320.0000.00616.61
7.4.300.0000.00616.52
7.4.290.0030.00316.54
7.4.280.0070.00016.61
7.4.270.0060.00016.55
7.4.260.0000.00716.39
7.4.250.0000.00716.63
7.4.240.0040.00416.64
7.4.230.0000.00716.42
7.4.220.0070.01616.67
7.4.210.0060.01316.48
7.4.200.0000.00816.65
7.4.160.0090.01216.62
7.4.150.0210.00317.40
7.4.140.0080.01017.86
7.4.130.0090.00816.62
7.4.120.0110.00816.53
7.4.110.0170.00716.40
7.4.100.0060.01216.59
7.4.90.0150.00316.68
7.4.80.0080.00819.04
7.4.70.0130.00416.57
7.4.60.0070.01016.63
7.4.50.0050.00316.34
7.4.40.0070.00916.61
7.4.30.0090.00616.36
7.4.00.0050.01015.13
7.3.330.0030.00313.32
7.3.320.0000.00513.32
7.3.310.0070.00016.44
7.3.300.0030.00316.31
7.3.290.0060.01216.53
7.3.280.0080.00816.44
7.3.270.0120.00617.40
7.3.260.0090.00916.38
7.3.250.0140.00616.44
7.3.240.0160.00316.74
7.3.230.0140.00316.66
7.3.210.0120.00616.70
7.3.200.0070.01019.39
7.3.190.0030.01416.43
7.3.180.0110.00516.46
7.3.170.0040.01216.50
7.3.160.0030.01216.57
7.3.120.0080.00814.90
7.3.110.0030.00914.96
7.3.100.0080.01014.90
7.3.90.0050.01214.83
7.3.80.0060.01014.77
7.3.70.0050.01014.98
7.3.60.0070.00614.74
7.3.50.0050.01014.91
7.3.40.0070.00714.89
7.3.30.0100.00614.72
7.3.20.0050.00716.57
7.3.10.0070.00716.64
7.3.00.0080.00816.48
7.2.330.0000.01916.71
7.2.320.0070.01116.53
7.2.310.0100.00716.53
7.2.300.0000.02116.74
7.2.290.0130.00416.70
7.2.250.0000.01115.21
7.2.240.0060.01014.98
7.2.230.0090.00615.00
7.2.220.0090.00415.12
7.2.210.0030.01114.80
7.2.200.0070.01015.19
7.2.190.0030.01214.99
7.2.180.0100.00615.01
7.2.170.0080.00614.95
7.2.160.0100.00015.25
7.2.150.0130.00316.94
7.2.140.0040.01116.95
7.2.130.0080.00816.97
7.2.120.0070.00717.11
7.2.110.0110.00717.03
7.2.100.0000.01117.05
7.2.90.0130.00016.95
7.2.80.0110.00716.97
7.2.70.0100.00316.79
7.2.60.0050.00916.99
7.2.50.0030.01416.78
7.2.40.0060.00616.77
7.2.30.0030.01316.83
7.2.20.0080.00616.95
7.2.10.0070.00717.01
7.2.00.0030.01118.21
7.1.330.0030.01215.72
7.1.320.0050.00615.79
7.1.310.0080.00715.77
7.1.300.0040.01115.85
7.1.290.0080.00515.76
7.1.280.0030.01015.62
7.1.270.0070.00915.64
7.1.260.0020.00915.70
7.1.250.0050.00515.63
7.1.200.0080.00815.33
7.1.100.0030.00718.10
7.1.70.0000.00816.90
7.1.60.0040.00719.32
7.1.50.0100.01317.02
7.1.00.0100.07022.40
7.0.200.1100.00914.67
7.0.140.0000.07722.00
7.0.60.0130.05719.91
7.0.50.0030.04317.87
7.0.40.0070.08020.24
7.0.30.0200.04720.11
7.0.20.0130.05720.12
7.0.10.0300.07320.16
7.0.00.0070.07020.23
5.6.280.0030.07021.09
5.6.210.0000.04320.54
5.6.200.0100.07718.29
5.6.190.0070.04020.46
5.6.180.0300.06320.64
5.6.170.0230.08720.50
5.6.160.0100.07320.44
5.6.150.0030.05318.14
5.6.140.0070.04318.27
5.6.130.0000.09018.25
5.6.120.0030.04020.99
5.6.110.0030.04021.00
5.6.100.0100.04020.99
5.6.90.0070.08320.98
5.6.80.0130.06020.52
5.6.70.4200.02720.39
5.5.350.0000.08720.41
5.5.340.0030.04318.07
5.5.330.0030.06720.45
5.5.320.0400.05320.30
5.5.310.0370.07320.35
5.5.300.0030.04017.94
5.5.290.0070.04317.96
5.5.280.0100.07320.80
5.5.270.0070.08320.73
5.5.260.0000.09320.67
5.5.250.0030.04020.59
5.5.240.0100.08020.17
5.4.450.0230.04019.33
5.4.440.1030.05319.20
5.4.430.1030.05319.47
5.4.420.0670.00019.54
5.4.410.0630.00019.27
5.4.400.0600.00019.23
5.4.390.0630.00019.13
5.4.380.0500.06018.77
5.4.370.0730.03718.53
5.4.360.0330.05318.63
5.4.350.0500.07018.84
5.4.340.0430.04018.73
5.4.320.0050.04212.53
5.4.310.0070.04012.53
5.4.300.0040.03912.54
5.4.290.0080.03612.53
5.4.280.0050.04612.43
5.4.270.0030.03912.43
5.4.260.0050.04212.42
5.4.250.0040.04112.43
5.4.240.0050.03812.43
5.4.230.0070.03812.42
5.4.220.0070.03812.42
5.4.210.0050.03812.41
5.4.200.0060.05112.42
5.4.190.0060.04412.41
5.4.180.0040.03812.41
5.4.170.0110.03812.43
5.4.160.0090.03612.42
5.4.150.0080.03612.42
5.4.140.0090.03812.10
5.4.130.0080.03712.09
5.4.120.0060.03612.05
5.4.110.0040.03812.05
5.4.100.0070.03512.04
5.4.90.0050.03812.05
5.4.80.0060.03612.05
5.4.70.0060.03512.04
5.4.60.0110.03312.04
5.4.50.0070.03512.04
5.4.40.0130.04412.03
5.4.30.0070.03612.02
5.4.20.0070.03612.02
5.4.10.0070.03512.02
5.4.00.0080.04511.51
5.3.290.0040.04612.80
5.3.280.0080.03612.71
5.3.270.0050.04012.73
5.3.260.0070.04212.72
5.3.250.0090.03712.72
5.3.240.0090.03712.72
5.3.230.0100.04012.70
5.3.220.0090.03912.68
5.3.210.0040.04012.68
5.3.200.0040.03912.68
5.3.190.0040.03912.67
5.3.180.0050.03912.67
5.3.170.0070.03812.67
5.3.160.0070.03712.67
5.3.150.0080.04012.68
5.3.140.0070.03512.66
5.3.130.0100.07212.66
5.3.120.0070.04212.66
5.3.110.0080.05212.66
5.3.100.0070.03812.13
5.3.90.0030.04212.11
5.3.80.0060.04012.10
5.3.70.0060.03912.10
5.3.60.0070.04212.08
5.3.50.0060.03712.03
5.3.40.0060.03812.03
5.3.30.0060.04011.99
5.3.20.0120.03911.77
5.3.10.0050.03511.73
5.3.00.0090.03311.72
5.2.170.0040.0339.18
5.2.160.0060.0289.18
5.2.150.0080.0279.18
5.2.140.0030.0329.18
5.2.130.0070.0339.14
5.2.120.0070.0379.14
5.2.110.0040.0299.14
5.2.100.0040.0299.14
5.2.90.0050.0299.14
5.2.80.0030.0319.14
5.2.70.0040.0319.14
5.2.60.0050.0309.10
5.2.50.0050.0309.05
5.2.40.0040.0329.04
5.2.30.0070.0269.02
5.2.20.0060.0279.01
5.2.10.0060.0308.92
5.2.00.0090.0288.79
5.1.60.0030.0268.07
5.1.50.0040.0248.06
5.1.40.0070.0228.05
5.1.30.0010.0318.40
5.1.20.0060.0258.41
5.1.10.0020.0298.14
5.1.00.0020.0278.14
5.0.50.0040.0206.62
5.0.40.0050.0186.48
5.0.30.0010.0356.29
5.0.20.0020.0256.27
5.0.10.0040.0266.24
5.0.00.0020.0326.23
4.4.90.0030.0154.78
4.4.80.0020.0164.75
4.4.70.0030.0154.76
4.4.60.0040.0154.76
4.4.50.0040.0144.77
4.4.40.0010.0284.71
4.4.30.0030.0154.76
4.4.20.0050.0144.84
4.4.10.0020.0174.85
4.4.00.0020.0264.76
4.3.110.0010.0184.67
4.3.100.0010.0164.67
4.3.90.0010.0164.63
4.3.80.0040.0234.58
4.3.70.0040.0134.63
4.3.60.0040.0134.63
4.3.50.0020.0184.63
4.3.40.0020.0264.54
4.3.30.0040.0143.29
4.3.20.0030.0153.27
4.3.10.0020.0163.22
4.3.00.0070.01716.39

preferences:
43.02 ms | 400 KiB | 5 Q