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" && $className !== "SQLITE3Stmt") { 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.0070.01118.55
8.3.50.0180.00322.04
8.3.40.0110.00318.80
8.3.30.0030.01018.94
8.3.20.0040.00420.04
8.3.10.0040.00420.65
8.3.00.0040.00419.26
8.2.180.0150.00318.14
8.2.170.0070.00722.96
8.2.160.0080.00619.33
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0050.00226.16
8.2.120.0080.00022.03
8.2.110.0000.00920.49
8.2.100.0070.00417.84
8.2.90.0000.00819.27
8.2.80.0040.00417.97
8.2.70.0060.00317.75
8.2.60.0020.00917.91
8.2.50.0030.00618.07
8.2.40.0000.00818.21
8.2.30.0070.00019.35
8.2.20.0050.00317.76
8.2.10.0000.00818.15
8.2.00.0030.00517.81
8.1.280.0110.00425.92
8.1.270.0080.00023.91
8.1.260.0050.00326.35
8.1.250.0050.00228.09
8.1.240.0040.00423.97
8.1.230.0030.00718.98
8.1.220.0040.00417.93
8.1.210.0090.00018.77
8.1.200.0090.00017.23
8.1.190.0080.00017.23
8.1.180.0030.00618.10
8.1.170.0090.00018.53
8.1.160.0070.00021.95
8.1.150.0080.00018.84
8.1.140.0040.00417.47
8.1.130.0070.00017.85
8.1.120.0040.00417.54
8.1.110.0050.00317.51
8.1.100.0040.00417.37
8.1.90.0000.00817.54
8.1.80.0050.00217.49
8.1.70.0070.00017.48
8.1.60.0000.00817.64
8.1.50.0000.00817.59
8.1.40.0030.00617.59
8.1.30.0000.00817.62
8.1.20.0040.00417.56
8.1.10.0040.00417.60
8.1.00.0040.00417.50
8.0.300.0050.00318.77
8.0.290.0040.00416.75
8.0.280.0070.00018.41
8.0.270.0030.00317.24
8.0.260.0030.00317.26
8.0.250.0030.00317.05
8.0.240.0030.00317.04
8.0.230.0000.00717.03
8.0.220.0040.00416.86
8.0.210.0000.00816.98
8.0.200.0030.00517.04
8.0.190.0080.00017.05
8.0.180.0060.00317.02
8.0.170.0040.00417.00
8.0.160.0040.00416.80
8.0.150.0040.00416.93
8.0.140.0000.00716.98
8.0.130.0030.00313.33
8.0.120.0040.00416.91
8.0.110.0030.00516.96
8.0.100.0050.00216.94
8.0.90.0000.00716.88
8.0.80.0060.01116.89
8.0.70.0040.00416.84
8.0.60.0070.00017.04
8.0.50.0040.00416.79
8.0.30.0080.01017.18
8.0.20.0170.00817.40
8.0.10.0000.00717.15
8.0.00.0110.00716.70
7.4.330.0020.00215.10
7.4.320.0000.00716.53
7.4.300.0070.00016.37
7.4.290.0040.00416.44
7.4.280.0000.00816.65
7.4.270.0000.00716.60
7.4.260.0040.00416.53
7.4.250.0000.00816.40
7.4.240.0030.00516.51
7.4.230.0040.00416.41
7.4.220.0060.01316.61
7.4.210.0030.01316.54
7.4.200.0000.00716.68
7.4.160.0070.01016.66
7.4.150.0130.00717.40
7.4.140.0110.01117.86
7.4.130.0110.00516.64
7.4.120.0090.01216.63
7.4.110.0090.00916.62
7.4.100.0130.01016.46
7.4.90.0110.00516.53
7.4.80.0090.00619.03
7.4.70.0130.00716.70
7.4.60.0060.00916.41
7.4.50.0000.00816.54
7.4.40.0080.00816.46
7.4.30.0090.00616.57
7.4.00.0040.01115.00
7.3.330.0050.00013.31
7.3.320.0000.00513.27
7.3.310.0000.00716.50
7.3.300.0000.00816.45
7.3.290.0060.01316.46
7.3.280.0090.00616.45
7.3.270.0120.00617.40
7.3.260.0160.01016.37
7.3.250.0060.01116.48
7.3.240.0100.00616.44
7.3.230.0050.01316.63
7.3.210.0120.00816.39
7.3.200.0090.01019.39
7.3.190.0030.01316.47
7.3.180.0100.00716.64
7.3.170.0100.00616.57
7.3.160.0100.00716.42
7.2.330.0120.00616.88
7.2.320.0060.01816.62
7.2.310.0110.00616.52
7.2.300.0060.00916.61
7.2.290.0080.01416.78
7.2.60.0120.00316.83
7.2.00.0030.00919.44
7.1.200.0060.00315.78
7.1.100.0060.00618.27
7.1.70.0030.00316.88
7.1.60.0040.01419.32
7.1.50.0120.00016.89
7.1.00.0070.07322.33
7.0.200.0050.00516.71
7.0.140.0130.06022.21
7.0.110.0000.05720.00
7.0.100.0070.07720.08
7.0.90.0100.07720.05
7.0.80.0130.07019.93
7.0.70.0100.05719.85
7.0.60.0070.07720.04
7.0.50.0170.06319.88
7.0.40.0070.08319.79
7.0.30.0070.06319.82
7.0.20.0000.10319.77
7.0.10.0130.07019.71
7.0.00.0170.06719.65
5.6.280.0100.07021.00
5.6.260.0070.05720.68
5.6.250.0130.06320.51
5.6.240.0100.04720.71
5.6.230.0100.07720.55
5.6.220.0130.05020.66
5.6.210.0030.08020.64
5.6.200.0070.05020.69
5.6.190.0030.04020.56
5.6.180.0100.04320.85
5.6.170.0070.07020.63
5.6.160.0030.08020.62
5.6.150.0100.06020.71
5.6.140.0070.07720.56
5.6.130.0100.05720.59
5.6.120.0030.07320.64
5.6.110.0070.07720.84
5.6.100.0130.07320.64
5.6.90.0030.08020.64
5.6.80.0070.07720.04
5.6.70.0030.03719.84
5.6.60.0030.05020.02
5.6.50.0070.03720.25
5.6.40.0070.03719.99
5.6.30.0100.05320.00
5.6.20.0170.02720.04
5.6.10.0030.06720.00
5.6.00.0130.05720.00
5.5.380.0030.08317.55
5.5.370.0030.04017.54
5.5.360.0100.07317.69
5.5.350.0000.04717.54
5.5.340.0000.06018.07
5.5.330.0070.06017.91
5.5.320.0030.05318.10
5.5.310.0030.05018.10
5.5.300.0070.08318.05
5.5.290.0070.06318.13
5.5.280.0100.07018.10
5.5.270.0030.07317.95
5.5.260.0030.08017.90
5.5.250.0030.06717.72
5.5.240.0030.05717.30
5.5.230.0100.07017.21
5.5.220.0100.03017.46
5.5.210.0030.05317.46
5.5.200.0100.06717.27
5.5.190.0000.04317.46
5.5.180.0000.04017.61
5.5.160.0130.04717.58
5.5.150.0070.05317.26
5.5.140.0100.08017.43
5.5.130.0030.04317.26
5.5.120.0070.07317.48
5.5.110.0070.07017.30
5.5.100.0000.07717.51
5.5.90.0000.03717.48
5.5.80.0000.05317.16
5.5.70.0070.07717.15
5.5.60.0070.05717.16
5.5.50.0070.08317.47
5.5.40.0100.07317.20
5.5.30.0030.09317.20
5.5.20.0070.05317.36
5.5.10.0070.05717.34
5.5.00.0000.05717.35
5.4.450.0100.07319.28
5.4.440.0070.07319.66
5.4.430.0070.06319.31
5.4.420.0130.07719.56
5.4.410.0070.07319.51
5.4.400.0030.06019.17
5.4.390.0100.04719.23
5.4.380.0070.06319.24
5.4.370.0070.03719.16
5.4.360.0030.04019.01
5.4.350.0000.06019.24
5.4.340.0000.06319.09
5.4.320.0070.07019.16
5.4.310.0070.06319.03
5.4.300.0030.04719.22
5.4.290.0000.04019.16
5.4.280.0070.03718.98
5.4.270.0130.07319.22
5.4.260.0070.07719.00
5.4.250.0070.06319.17
5.4.240.0030.07719.02
5.4.230.0070.06019.24
5.4.220.0100.03719.27
5.4.210.0170.05719.33
5.4.200.0070.04319.00
5.4.190.0070.04319.00
5.4.180.0070.04319.17
5.4.170.0000.04719.02
5.4.160.0070.06019.05
5.4.150.0030.06019.32
5.4.140.0100.07016.52
5.4.130.0070.07016.37
5.4.120.0030.07016.38
5.4.110.0070.07716.38
5.4.100.0030.07316.54
5.4.90.0170.04316.56
5.4.80.0100.07016.53
5.4.70.0100.06016.45
5.4.60.0070.06316.53
5.4.50.0070.06716.50
5.4.40.0000.07016.39
5.4.30.0070.07316.24
5.4.20.0000.06016.56
5.4.10.0070.06016.35
5.4.00.0030.07715.92
5.3.290.0100.02714.66
5.3.280.0070.05314.56
5.3.270.0030.04714.62
5.3.260.0030.07714.65
5.3.250.0130.05314.60
5.3.240.0070.08014.68
5.3.230.0070.06714.56
5.3.220.0100.06014.56
5.3.210.0070.07314.56
5.3.200.0030.08014.56
5.3.190.0100.07314.55
5.3.180.0070.07714.43
5.3.170.0130.07014.56
5.3.160.0100.05314.80
5.3.150.0000.05014.55
5.3.140.0100.05014.57
5.3.130.0130.07014.59
5.3.120.0100.07014.56
5.3.110.0170.03714.63
5.3.100.0130.06014.03
5.3.90.0070.04714.04
5.3.80.0030.07314.04
5.3.70.0100.06714.03
5.3.60.0200.03313.98
5.3.50.0100.04713.94
5.3.40.0030.03714.18
5.3.30.0100.03713.87
5.3.20.0000.03713.78
5.3.10.0030.03713.64
5.3.00.0000.03713.68
5.2.170.0000.03011.93
5.2.160.0070.02311.93
5.2.150.0030.02711.93
5.2.140.0000.03011.93
5.2.130.0070.02711.93
5.2.120.0030.02711.93
5.2.110.0000.02711.93
5.2.100.0000.03011.93
5.2.90.0030.02711.93
5.2.80.0000.03011.93
5.2.70.0000.03011.93
5.2.60.0030.05711.93
5.2.50.0000.03011.93
5.2.40.0000.03711.93
5.2.30.0000.03011.93
5.2.20.0000.03011.93
5.2.10.0030.02311.93
5.2.00.0000.03011.93
5.1.60.0030.02011.93
5.1.50.0000.03311.93
5.1.40.0000.02311.93
5.1.30.0000.02711.93
5.1.20.0000.02711.93
5.1.10.0000.02311.93
5.1.00.0070.01711.93
5.0.50.0000.02311.93
5.0.40.0000.01711.93
5.0.30.0030.02711.93
5.0.20.0000.02011.93
5.0.10.0030.01311.93
5.0.00.0000.06311.93
4.4.90.0000.01711.93
4.4.80.0000.01711.93
4.4.70.0030.02011.93
4.4.60.0000.01711.93
4.4.50.0030.01011.93
4.4.40.0030.02011.93
4.4.30.0000.01311.93
4.4.20.0000.01711.93
4.4.10.0000.01711.93
4.4.00.0000.02311.93
4.3.110.0000.01311.93
4.3.100.0000.01311.93
4.3.90.0000.01311.93
4.3.80.0000.02311.93
4.3.70.0000.02011.93
4.3.60.0030.01011.93
4.3.50.0000.01711.93
4.3.40.0030.02011.93
4.3.30.0000.01311.93
4.3.20.0030.01311.93
4.3.10.0000.01311.93
4.3.00.0000.01311.93

preferences:
44.72 ms | 401 KiB | 5 Q