3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass { public function __construct() { $object = null; if ($object === null) { get_class(); } else { get_class($object); } } } new MyClass();

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.4.20.0110.00825.91
8.4.10.0080.01223.46
8.3.140.0040.00418.56
8.3.130.0160.00616.59
8.3.120.0120.00318.92
8.3.110.0040.00420.94
8.3.100.0060.00316.82
8.3.90.0040.00426.77
8.3.80.0090.00317.97
8.3.70.0150.00718.50
8.3.60.0120.00316.63
8.3.50.0070.00716.85
8.3.40.0080.00620.29
8.3.30.0110.00418.54
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0080.00026.16
8.2.260.0000.01020.06
8.2.250.0040.00416.45
8.2.240.0090.00917.26
8.2.230.0060.00322.58
8.2.220.0120.00324.06
8.2.210.0030.01626.77
8.2.200.0090.00316.48
8.2.190.0080.00816.58
8.2.180.0070.01016.50
8.2.170.0040.01118.91
8.2.160.0070.00722.96
8.2.150.0000.00825.66
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0050.00319.36
8.2.110.0000.00920.53
8.2.100.0080.00417.72
8.2.90.0000.00817.63
8.2.80.0060.00318.61
8.2.70.0060.00317.63
8.2.60.0000.01219.23
8.2.50.0000.00817.50
8.2.40.0000.00717.80
8.2.30.0050.00217.93
8.2.20.0070.00019.09
8.2.10.0040.00417.97
8.2.00.0160.00018.63
8.1.310.0070.00716.52
8.1.300.0070.00316.16
8.1.290.0060.00318.88
8.1.280.0190.00525.92
8.1.270.0080.00024.66
8.1.260.0050.00326.35
8.1.250.0100.00028.09
8.1.240.0040.00423.90
8.1.230.0110.00023.88
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0040.00417.23
8.1.190.0040.00417.10
8.1.180.0050.00318.10
8.1.170.0040.00417.62
8.1.160.0050.00218.82
8.1.150.0070.00018.48
8.1.140.0070.00017.38
8.1.130.0160.00018.52
8.1.120.0140.00218.47
8.1.110.0090.00618.56
8.1.100.0110.00618.57
8.1.90.0120.00318.43
8.1.80.0090.00618.56
8.1.70.0160.00018.50
8.1.60.0070.01018.79
8.1.50.0170.00018.60
8.1.40.0140.00418.76
8.1.30.0170.00018.70
8.1.20.0040.00420.57
8.1.10.0030.00620.45
8.1.00.0060.00320.47
8.0.300.0000.00719.77
8.0.290.0040.00416.63
8.0.280.0060.00318.35
8.0.270.0040.00417.92
8.0.260.0050.00317.79
8.0.250.0050.00317.91
8.0.240.0080.00317.92
8.0.230.0100.00217.95
8.0.220.0040.00717.77
8.0.210.0080.00317.78
8.0.200.0000.01217.84
8.0.190.0100.00017.90
8.0.180.0060.00417.90
8.0.170.0060.00317.77
8.0.160.0000.01017.91
8.0.150.0100.00517.74
8.0.140.0030.00917.77
8.0.130.0060.00317.81
8.0.120.0000.00917.91
8.0.110.0060.00317.75
8.0.100.0100.00017.94
8.0.90.0050.00517.76
8.0.80.0110.00017.77
8.0.70.0050.00517.85
8.0.60.0080.00317.76
8.0.50.0080.00417.87
8.0.30.0070.00717.86
8.0.20.0060.00817.90
8.0.10.0120.00217.97
8.0.00.0080.00318.07
7.4.330.0060.00216.02
7.4.320.0090.00717.59
7.4.300.0160.00017.53
7.4.290.0130.00317.55
7.4.280.0080.00817.47
7.4.270.0170.00017.59
7.4.260.0110.00517.60
7.4.250.0120.00517.63
7.4.240.0150.00017.64
7.4.230.0000.01617.47
7.4.220.0090.00517.63
7.4.210.0130.00017.60
7.4.200.0090.00617.55
7.4.190.0100.00317.71
7.4.180.0110.00317.63
7.4.160.0040.01117.61
7.4.150.0120.00317.58
7.4.140.0120.00317.51
7.4.130.0110.00417.55
7.4.120.0110.00217.45
7.4.110.0130.00017.53
7.4.100.0130.00017.50
7.4.90.0070.00717.57
7.4.80.0110.00317.52
7.4.70.0050.00817.58
7.4.60.0110.00217.54
7.4.50.0100.00317.40
7.4.40.0130.00017.34
7.4.30.0070.00717.52
7.4.20.0080.00817.52
7.4.10.0090.00417.53
7.4.00.0040.00917.45
7.3.330.0110.00417.41
7.3.320.0090.00417.29
7.3.310.0090.00617.27
7.3.300.0110.00317.37
7.3.290.0090.00517.32
7.3.280.0120.00217.23
7.3.270.0110.00417.42
7.3.260.0110.00317.29
7.3.250.0070.00717.42
7.3.240.0090.00517.43
7.3.230.0100.00517.41
7.3.220.0100.00317.21
7.3.210.0070.00717.26
7.3.200.0050.01017.27
7.3.190.0140.00017.35
7.3.180.0100.00517.39
7.3.170.0080.00617.23
7.3.160.0100.00317.22
7.3.150.0040.01117.34
7.3.140.0140.00017.30
7.3.130.0140.00017.28
7.3.120.0140.00017.14
7.3.110.0110.00417.21
7.3.100.0070.00717.30
7.3.90.0070.00717.60
7.3.80.0140.00017.36
7.3.70.0080.00617.25
7.3.60.0120.00317.49
7.3.50.0110.00417.50
7.3.40.0140.00017.46
7.3.30.0080.00617.45
7.3.20.0090.00619.14
7.3.10.0140.00019.20
7.3.00.0150.00019.18
7.2.340.0090.00517.23
7.2.330.0110.00417.22
7.2.320.0140.00017.23
7.2.310.0100.00517.18
7.2.300.0070.00717.18
7.2.290.0110.00317.35
7.2.280.0070.00717.28
7.2.270.0110.00317.42
7.2.260.0090.00517.23
7.2.250.0140.00017.45
7.2.240.0070.00717.28
7.2.230.0120.00317.23
7.2.220.0140.00017.21
7.2.210.0080.00817.32
7.2.200.0110.00417.42
7.2.190.0100.00517.36
7.2.180.0070.00717.46
7.2.170.0140.00017.61
7.2.160.0120.00217.40
7.2.150.0060.00919.19
7.2.140.0120.00319.24
7.2.130.0070.00719.36
7.2.120.0090.00519.41
7.2.110.0090.00519.38
7.2.100.0080.00519.34
7.2.90.0170.00019.30
7.2.80.0110.00319.20
7.2.70.0120.00319.38
7.2.60.0060.00819.28
7.2.50.0090.00619.45
7.2.40.0150.00019.25
7.2.30.0070.00719.45
7.2.20.0090.00619.51
7.2.10.0110.00419.51
7.2.00.0140.00019.52
7.1.330.0110.00318.31
7.1.320.0050.00918.41
7.1.310.0090.00418.41
7.1.300.0080.00618.39
7.1.290.0070.00718.42
7.1.280.0070.00718.39
7.1.270.0090.00418.22
7.1.260.0000.01418.36
7.1.250.0130.00018.30
7.1.240.0230.00018.17
7.1.230.0070.00718.15
7.1.220.0100.00518.23
7.1.210.0050.00918.30
7.1.200.0080.00518.26
7.1.190.0090.00518.32
7.1.180.0130.00018.30
7.1.170.0040.00918.35
7.1.160.0140.00018.13
7.1.150.0140.00018.40
7.1.140.0130.00318.21
7.1.130.0100.00318.33
7.1.120.0090.00518.24
7.1.110.0120.00218.35
7.1.100.0080.00518.27
7.1.90.0120.00318.22
7.1.80.0090.00418.32
7.1.70.0030.01018.22
7.1.60.0050.00918.26
7.1.50.0090.00518.24
7.1.40.0110.00318.25
7.1.30.0100.00318.21
7.1.20.0100.00318.20
7.1.10.0120.00218.36
7.1.00.0130.00018.19
7.0.330.0060.00618.06
7.0.320.0130.00017.86
7.0.310.0100.00318.05
7.0.300.0090.00318.04
7.0.290.0130.00017.89
7.0.280.0130.00017.87
7.0.270.0100.00318.02
7.0.260.0090.00318.05
7.0.250.0110.00318.09
7.0.240.0090.00318.12
7.0.230.0090.00418.11
7.0.220.0130.00017.90
7.0.210.0060.00617.97
7.0.200.0080.00518.06
7.0.190.0070.00717.79
7.0.180.0040.00918.02
7.0.170.0080.00518.01
7.0.160.0090.00317.78
7.0.150.0090.00517.86
7.0.140.0050.00817.89
7.0.130.0110.00318.09
7.0.120.0130.00018.13
7.0.110.0040.00817.93
7.0.100.0130.00017.91
7.0.90.0130.00017.84
7.0.80.0080.00417.99
7.0.70.0060.00618.01
7.0.60.0100.00317.89
7.0.50.0100.00317.82
7.0.40.0040.00817.97
7.0.30.0060.00618.13
7.0.20.0090.00318.01
7.0.10.0080.00418.09
7.0.00.0140.00018.01
5.6.400.0100.00216.82
5.6.390.0080.00516.93
5.6.380.0090.00416.89
5.6.370.0080.00416.80
5.6.360.0080.00516.99
5.6.350.0110.00217.02
5.6.340.0090.00516.81
5.6.330.0060.00616.98
5.6.320.0120.00016.94
5.6.310.0130.00017.05
5.6.300.0090.00416.86
5.6.290.0120.00216.89
5.6.280.0090.00516.96
5.6.270.0070.00516.84
5.6.260.0070.00516.90
5.6.250.0100.00316.98
5.6.240.0130.00017.04
5.6.230.0060.00617.17
5.6.220.0080.00616.98
5.6.210.0140.00016.93
5.6.200.0130.00017.16
5.6.190.0130.00017.03
5.6.180.0130.00016.93
5.6.170.0110.00416.92
5.6.160.0100.00316.89
5.6.150.0130.00016.84
5.6.140.0110.00216.88
5.6.130.0060.00617.04
5.6.120.0080.00416.95
5.6.110.0080.00516.84
5.6.100.0100.00317.02
5.6.90.0060.00616.80
5.6.80.0120.00016.88
5.6.70.0030.01016.99
5.6.60.0080.00417.16
5.6.50.0100.00316.98
5.6.40.0130.00016.90
5.6.30.0090.00316.88
5.6.20.0090.00316.93
5.6.10.0090.00316.82
5.6.00.0070.00716.86
5.5.380.0090.00416.98
5.5.370.0130.00017.00
5.5.360.0130.00016.84
5.5.350.0110.00316.80
5.5.340.0130.00016.89
5.5.330.0080.00516.74
5.5.320.0100.00316.74
5.5.310.0070.00716.95
5.5.300.0000.01316.90
5.5.290.0080.00416.61
5.5.280.0090.00316.68
5.5.270.0070.00716.74
5.5.260.0130.00016.94
5.5.250.0130.00016.97
5.5.240.0130.00016.99
5.5.230.0120.00016.91
5.5.220.0080.00416.93
5.5.210.0060.00616.93
5.5.200.0060.00616.75
5.5.190.0080.00416.72
5.5.180.0080.00416.74
5.5.170.0060.00616.60
5.5.160.0080.00416.71
5.5.150.0050.00916.64
5.5.140.0090.00416.64
5.5.130.0100.00216.53
5.5.120.0130.00016.43
5.5.110.0060.00616.41
5.5.100.0120.00016.80
5.5.90.0080.00516.85
5.5.80.0080.00416.95
5.5.70.0060.00616.71
5.5.60.0070.00716.89
5.5.50.0090.00516.78
5.5.40.0110.00316.86
5.5.30.0040.00816.77
5.5.20.0120.00016.71
5.5.10.0120.00016.79
5.5.00.0080.00416.84
5.4.450.0060.00315.79
5.4.440.0100.00015.79
5.4.430.0050.00515.79
5.4.420.0070.00415.79
5.4.410.0070.00415.79
5.4.400.0110.00015.79
5.4.390.0070.00315.79
5.4.380.0040.00815.79
5.4.370.0070.00415.79
5.4.360.0080.00315.79
5.4.350.0070.00415.79
5.4.340.0050.00515.79
5.4.330.0030.00715.79
5.4.320.0090.00315.79
5.4.310.0110.00015.79
5.4.300.0060.00615.79
5.4.290.0080.00415.79
5.4.280.0080.00515.79
5.4.270.0070.00415.79
5.4.260.0060.00615.79
5.4.250.0110.00015.79
5.4.240.0110.00015.79
5.4.230.0050.00515.79
5.4.220.0080.00315.79
5.4.210.0060.00615.79
5.4.200.0110.00015.79
5.4.190.0120.00015.79
5.4.180.0050.00515.79
5.4.170.0090.00215.79
5.4.160.0090.00215.79
5.4.150.0080.00415.79
5.4.140.0100.00315.79
5.4.130.0050.00515.79
5.4.120.0050.00515.79
5.4.110.0040.00815.79
5.4.100.0050.00515.79
5.4.90.0070.00315.79
5.4.80.0050.00515.79
5.4.70.0050.00515.79
5.4.60.0110.00015.79
5.4.50.0090.00215.79
5.4.40.0110.00015.79
5.4.30.0070.00315.79
5.4.20.0080.00315.79
5.4.10.0050.00515.79
5.4.00.0100.00015.79
5.3.290.0110.00015.79
5.3.280.0080.00315.79
5.3.270.0080.00415.79
5.3.260.0110.00015.79
5.3.250.0060.00415.79
5.3.240.0050.00515.79
5.3.230.0080.00315.79
5.3.220.0050.00515.79
5.3.210.0110.00015.79
5.3.200.0080.00315.79
5.3.190.0100.00015.79
5.3.180.0050.00515.79
5.3.170.0100.00015.79
5.3.160.0100.00015.79
5.3.150.0000.01115.79
5.3.140.0110.00015.79
5.3.130.0090.00215.79
5.3.120.0040.00815.79
5.3.110.0000.01115.79
5.3.100.0000.01115.79
5.3.90.0050.00515.79
5.3.80.0070.00215.79
5.3.70.0070.00315.79
5.3.60.0110.00015.79
5.3.50.0050.00515.79
5.3.40.0060.00615.79
5.3.30.0100.00015.79
5.3.20.0110.00015.79
5.3.10.0030.00715.79
5.3.00.0050.00515.79
5.2.170.0040.00415.79
5.2.160.0080.00015.79
5.2.150.0040.00415.79
5.2.140.0080.00015.79
5.2.130.0090.00015.79
5.2.120.0080.00015.79
5.2.110.0090.00015.79
5.2.100.0040.00415.79
5.2.90.0080.00015.79
5.2.80.0000.01015.79
5.2.70.0050.00515.79
5.2.60.0090.00015.79
5.2.50.0040.00515.79
5.2.40.0080.00015.79
5.2.30.0020.00615.79
5.2.20.0000.00815.79
5.2.10.0050.00315.79
5.2.00.0000.00815.79
5.1.60.0050.00215.79
5.1.50.0070.00015.79
5.1.40.0070.00015.79
5.1.30.0020.00515.79
5.1.20.0080.00015.79
5.1.10.0070.00015.79
5.1.00.0050.00215.79
5.0.50.0000.00615.79
5.0.40.0060.00015.79
5.0.30.0000.00615.79
5.0.20.0030.00315.79
5.0.10.0000.00615.79
5.0.00.0060.00015.79
4.4.90.0000.00415.79
4.4.80.0020.00115.79
4.4.70.0040.00015.79
4.4.60.0030.00015.79
4.4.50.0000.00315.79
4.4.40.0000.00415.79
4.4.30.0020.00215.79
4.4.20.0050.00015.79
4.4.10.0040.00015.79
4.4.00.0000.00415.79
4.3.110.0040.00015.79
4.3.100.0040.00015.79
4.3.90.0030.00015.79
4.3.80.0040.00015.79
4.3.70.0000.00415.79
4.3.60.0030.00115.79
4.3.50.0040.00015.79
4.3.40.0000.00415.79
4.3.30.0030.00015.79
4.3.20.0000.00215.79
4.3.10.0030.00015.79
4.3.00.0030.00015.79

preferences:
69.01 ms | 403 KiB | 5 Q