3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test {} $class = 'TEST'; $table = get_declared_classes() + get_declared_interfaced() + get_declared_traits(); $table = array_change_key_case(array_combine($table, $table), CASE_LOWER); var_dump($class, $table[strtolower($table)]);

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.70.0150.00618.31
8.3.60.0120.00918.43
8.3.50.0080.01221.95
8.3.40.0130.00618.97
8.3.30.0000.01419.04
8.3.20.0080.00020.16
8.3.10.0080.00021.72
8.3.00.0040.00419.25
8.2.180.0110.00718.41
8.2.170.0060.00922.96
8.2.160.0100.00320.52
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0000.00826.16
8.2.120.0040.00419.38
8.2.110.0030.00619.11
8.2.100.0040.00817.63
8.2.90.0000.00719.05
8.2.80.0080.00017.97
8.2.70.0090.00017.48
8.2.60.0000.00817.68
8.2.50.0120.00018.07
8.2.40.0030.00519.95
8.2.30.0030.00617.99
8.2.20.0070.00017.60
8.2.10.0070.00017.93
8.2.00.0040.00417.68
8.1.280.0120.00325.92
8.1.270.0030.00620.60
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0090.00023.92
8.1.230.0040.00817.54
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0000.00817.25
8.1.180.0040.00418.10
8.1.170.0000.00719.03
8.1.160.0000.00721.96
8.1.150.0040.00418.82
8.1.140.0040.00417.50
8.1.130.0030.00317.74
8.1.120.0050.00317.39
8.1.110.0000.00717.29
8.1.100.0000.00717.35
8.1.90.0070.00017.42
8.1.80.0040.00417.35
8.1.70.0000.00717.40
8.1.60.0000.00817.54
8.1.50.0000.00817.48
8.1.40.0060.00617.53
8.1.30.0040.00417.64
8.1.20.0060.00317.54
8.1.10.0040.00417.56
8.1.00.0030.00517.46
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0040.00418.45
8.0.270.0000.00717.10
8.0.260.0030.00317.16
8.0.250.0070.00016.84
8.0.240.0040.00416.96
8.0.230.0040.00416.93
8.0.220.0070.00016.86
8.0.210.0040.00416.80
8.0.200.0060.00016.89
8.0.190.0040.00416.96
8.0.180.0040.00416.82
8.0.170.0040.00416.91
8.0.160.0070.00016.85
8.0.150.0000.00716.84
8.0.140.0030.00316.82
8.0.130.0000.00513.38
8.0.120.0080.00016.74
8.0.110.0040.00416.81
8.0.100.0080.00017.00
8.0.90.0000.00816.78
8.0.80.0060.01216.96
8.0.70.0040.00416.90
8.0.60.0040.00416.90
8.0.50.0050.00316.76
8.0.30.0120.00917.04
8.0.20.0140.00717.40
8.0.10.0050.00217.02
8.0.00.0050.01516.68
7.4.330.0020.00215.03
7.4.320.0030.00316.47
7.4.300.0000.00716.55
7.4.290.0070.00316.59
7.4.280.0060.00316.59
7.4.270.0030.00316.61
7.4.260.0040.00416.54
7.4.250.0070.00016.45
7.4.240.0020.00616.48
7.4.230.0030.00316.50
7.4.220.0070.01716.41
7.4.210.0080.01016.61
7.4.200.0040.00416.50
7.4.160.0060.00916.66
7.4.150.0070.01017.40
7.4.140.0110.01117.86
7.4.130.0100.01116.53
7.4.120.0090.00916.55
7.4.110.0160.00616.49
7.4.100.0110.00716.60
7.4.90.0120.00616.48
7.4.80.0030.01319.39
7.4.70.0070.01016.36
7.4.60.0160.00316.62
7.4.50.0060.00316.63
7.4.40.0090.00916.38
7.4.30.0070.01016.49
7.4.00.0030.01414.83
7.3.330.0030.00313.12
7.3.320.0110.00413.27
7.3.310.0070.00016.17
7.3.300.0030.00316.30
7.3.290.0060.00016.16
7.3.280.0090.00916.30
7.3.270.0210.01017.40
7.3.260.0070.01516.39
7.3.250.0100.01116.42
7.3.240.0120.00616.36
7.3.230.0090.01316.39
7.3.210.0070.01116.52
7.3.200.0060.01619.39
7.3.190.0080.00816.34
7.3.180.0080.00816.36
7.3.170.0070.01516.46
7.3.160.0090.00916.33
7.3.120.0090.00614.70
7.3.110.0030.01514.73
7.3.100.0060.00615.00
7.3.90.0140.00014.83
7.3.80.0030.01314.79
7.3.70.0000.00914.89
7.3.60.0070.00714.88
7.3.50.0080.00814.84
7.3.40.0030.01314.53
7.3.30.0040.01114.57
7.3.20.0030.00616.69
7.3.10.0060.00616.61
7.3.00.0070.00316.40
7.2.330.0090.00916.32
7.2.320.0120.00616.41
7.2.310.0030.01416.34
7.2.300.0090.01216.64
7.2.290.0130.00316.45
7.2.250.0030.01714.92
7.2.240.0070.01114.95
7.2.230.0100.00314.98
7.2.220.0040.00715.18
7.2.210.0080.00314.96
7.2.200.0030.01414.82
7.2.190.0060.00915.00
7.2.180.0030.01014.98
7.2.170.0060.01514.89
7.2.60.0070.00716.83
7.2.00.0070.00719.17
7.1.330.0100.00315.86
7.1.320.0030.01315.33
7.1.310.0030.00915.64
7.1.300.0080.00415.51
7.1.290.0030.00915.61
7.1.280.0130.00715.64
7.1.270.0080.00315.66
7.1.260.0060.00915.71
7.1.200.0080.00415.52
7.1.100.0000.01118.25
7.1.70.0060.00317.22
7.1.60.0100.01419.50
7.1.50.0120.00916.89
7.1.00.0070.07322.28
7.0.200.0210.00616.23
7.0.140.0030.07721.99
7.0.60.0070.03719.79
7.0.50.0000.08717.85
7.0.40.0070.05020.30
7.0.30.0200.04020.08
7.0.20.0270.08020.07
7.0.10.0200.08320.11
7.0.00.0100.03720.25
5.6.280.0070.07020.99
5.6.210.0130.08020.76
5.6.200.0070.06318.29
5.6.190.0000.04720.57
5.6.180.0230.05320.52
5.6.170.0330.06020.47
5.6.160.0070.07320.71
5.6.150.0100.04718.25
5.6.140.0030.08318.19
5.6.130.0030.08318.26
5.6.120.0130.07721.11
5.6.110.0130.07021.13
5.6.100.0100.08020.97
5.6.90.0100.08020.98
5.6.80.0130.07020.26
5.6.70.0230.07320.36
5.5.350.0200.06720.40
5.5.340.0070.06317.98
5.5.330.0100.08020.40
5.5.320.0030.07020.32
5.5.310.0270.07320.35
5.5.300.0130.07317.95
5.5.290.0070.08717.92
5.5.280.0200.07020.87
5.5.270.0100.04720.87
5.5.260.0100.05320.67
5.5.250.0000.04320.69
5.5.240.0030.04720.07
5.4.450.0730.05719.66
5.4.440.0700.05019.55
5.4.430.0130.05719.13
5.4.420.0800.04719.12
5.4.410.0430.05319.49
5.4.400.0130.06318.55
5.4.390.0170.06018.77
5.4.380.0170.06018.48
5.4.370.0200.05318.70
5.4.360.0230.05018.48
5.4.350.0330.05318.52
5.4.340.0270.05718.76
5.4.320.0270.06318.47
5.4.310.0270.07018.57
5.4.300.0200.06018.70
5.4.290.0200.05718.63
5.4.280.0230.05718.75
5.4.270.0200.05718.59
5.4.260.0100.06718.72
5.4.250.0300.04718.53
5.4.240.0270.05018.74
5.4.230.0230.05018.75
5.4.220.0170.06018.73
5.4.210.0330.07018.60
5.4.200.0230.05316.61
5.4.190.0230.05718.60
5.4.180.0270.07318.56
5.4.170.0300.06318.46
5.4.160.0200.05718.45
5.4.150.0300.05018.54
5.4.140.0200.05316.36
5.4.130.0370.04316.45
5.4.120.0230.04716.30
5.4.110.0230.04716.27
5.4.100.0230.05016.30
5.4.90.0270.05316.31
5.4.80.0270.04716.31
5.4.70.0170.05716.18
5.4.60.0230.04716.42
5.4.50.0200.05316.32
5.4.40.0430.05716.43
5.4.30.0200.05016.21
5.4.20.0230.05316.21
5.4.10.0100.06716.41
5.4.00.0270.05715.70
5.3.290.0230.05314.72
5.3.280.0130.06314.61
5.3.270.0570.06314.65
5.3.260.0270.05314.74
5.3.250.0230.05014.68
5.3.240.0230.05314.64
5.3.230.0200.05314.80
5.3.220.0270.04714.69
5.3.210.0170.05714.63
5.3.200.0330.05314.61
5.3.190.0200.05314.63
5.3.180.0270.05714.62
5.3.170.0300.04714.61
5.3.160.0100.05714.62
5.3.150.0300.05014.70
5.3.140.0400.04014.67
5.3.130.0300.06314.74
5.3.120.0300.05014.55
5.3.110.0300.05014.58
5.3.100.0370.03714.17
5.3.90.0230.05014.01
5.3.80.0130.06014.19
5.3.70.0270.04314.09
5.3.60.0270.04714.24
5.3.50.0270.04314.08
5.3.40.0200.05314.07
5.3.30.0200.05013.99
5.3.20.0230.04713.88
5.3.10.0270.04313.88
5.3.00.0100.06013.68
5.2.170.0170.04311.23
5.2.160.0230.03711.15
5.2.150.0100.04711.20
5.2.140.0130.04311.22
5.2.130.0200.03311.22
5.2.120.0230.03011.21
5.2.110.0230.04011.24
5.2.100.0270.03311.19
5.2.90.0230.03711.32
5.2.80.0170.05711.21
5.2.70.0200.04311.21
5.2.60.0270.05011.16
5.2.50.0230.05011.13
5.2.40.0170.05311.12
5.2.30.0070.04711.04
5.2.20.0170.03710.99
5.2.10.0170.03710.92
5.2.00.0230.03310.82
5.1.60.0200.02710.03
5.1.50.0130.03710.13
5.1.40.0130.03310.19
5.1.30.0100.04010.34
5.1.20.0130.03710.39
5.1.10.0230.02710.10
5.1.00.0170.04710.16
5.0.50.0100.0278.68
5.0.40.0100.0278.41
5.0.30.0070.0538.23
5.0.20.0100.0308.29
5.0.10.0100.0278.21
5.0.00.0100.0408.18
4.4.90.0070.0237.41
4.4.80.0030.0307.41
4.4.70.0070.0237.41
4.4.60.0100.0277.41
4.4.50.0100.0207.41
4.4.40.0100.0337.41
4.4.30.0100.0277.41
4.4.20.0030.0237.41
4.4.10.0100.0207.41
4.4.00.0070.0437.41
4.3.110.0200.0177.41
4.3.100.0070.0277.41
4.3.90.0130.0237.41
4.3.80.0030.0477.41
4.3.70.0030.0337.41
4.3.60.0070.0207.41
4.3.50.0130.0277.41
4.3.40.0100.0307.41
4.3.30.0030.0237.41
4.3.20.0070.0207.41
4.3.10.0070.0277.41
4.3.00.0130.0237.01

preferences:
52.21 ms | 401 KiB | 5 Q