3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { // Will dump class name public function Foo() { var_dump(self::class); } } // will dump class name var_dump(Foo::class); $foo = new Foo; // wont work if you uncomment this line // var_dump($foo::class);

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.01018.31
8.3.50.0040.01816.47
8.3.40.0140.00318.59
8.3.30.0140.00018.96
8.3.20.0040.00420.21
8.3.10.0090.00023.78
8.3.00.0040.00419.25
8.2.180.0070.01116.50
8.2.170.0110.00322.96
8.2.160.0070.01320.33
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0040.00422.09
8.2.110.0060.00320.56
8.2.100.0090.00317.97
8.2.90.0040.00419.09
8.2.80.0000.00917.97
8.2.70.0060.00317.50
8.2.60.0050.00217.92
8.2.50.0030.00618.07
8.2.40.0040.00417.97
8.2.30.0070.00317.86
8.2.20.0040.00417.43
8.2.10.0040.00417.89
8.2.00.0070.00017.49
8.1.270.0080.00022.14
8.1.260.0050.00226.35
8.1.250.0070.00028.09
8.1.240.0030.00623.91
8.1.230.0040.00718.98
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0000.01017.23
8.1.190.0030.00617.10
8.1.180.0030.00618.10
8.1.170.0040.00418.52
8.1.160.0050.00321.82
8.1.150.0070.00018.81
8.1.140.0060.00317.43
8.1.130.0000.00717.73
8.1.120.0000.00717.43
8.1.110.0040.00417.42
8.1.100.0000.00717.41
8.1.90.0040.00417.43
8.1.80.0040.00417.29
8.1.70.0000.00717.36
8.1.60.0040.00417.54
8.1.50.0030.00617.50
8.1.40.0050.00317.34
8.1.30.0040.00417.48
8.1.20.0040.00417.53
8.1.10.0000.00717.40
8.1.00.0040.00417.38
8.0.300.0070.00018.77
8.0.290.0040.00416.63
8.0.280.0000.00718.40
8.0.270.0040.00416.62
8.0.260.0060.00017.24
8.0.250.0030.00316.79
8.0.240.0030.00316.79
8.0.230.0030.00316.76
8.0.220.0000.00716.70
8.0.210.0050.00316.70
8.0.200.0040.00416.89
8.0.190.0030.00316.89
8.0.180.0000.00716.73
8.0.170.0000.00816.74
8.0.160.0060.00316.66
8.0.150.0040.00416.76
8.0.140.0040.00416.67
8.0.130.0060.00013.28
8.0.120.0040.00416.80
8.0.110.0000.00816.75
8.0.100.0020.00516.68
8.0.90.0040.00416.64
8.0.80.0160.00016.70
8.0.70.0000.00816.82
8.0.60.0070.00016.64
8.0.50.0000.00716.70
8.0.30.0100.00917.11
8.0.20.0090.01017.40
8.0.10.0000.00716.99
8.0.00.0060.01216.52
7.4.330.0030.00315.00
7.4.320.0000.00616.48
7.4.300.0070.00016.51
7.4.290.0070.00016.49
7.4.280.0050.00316.43
7.4.270.0060.00016.59
7.4.260.0000.01216.55
7.4.250.0000.00716.55
7.4.240.0030.00416.55
7.4.230.0000.00716.61
7.4.220.0120.00616.51
7.4.210.0130.00616.54
7.4.200.0000.00716.62
7.4.160.0100.00616.58
7.4.150.0090.00917.40
7.4.140.0070.01317.86
7.4.130.0080.01016.61
7.4.120.0050.01316.43
7.4.110.0100.01016.58
7.4.100.0090.00916.57
7.4.90.0070.01116.45
7.4.80.0120.00619.39
7.4.70.0110.00616.44
7.4.60.0050.01116.31
7.4.50.0000.00816.54
7.4.40.0030.01516.66
7.4.30.0060.01216.54
7.4.00.0070.01014.73
7.3.330.0060.00013.17
7.3.320.0060.00013.10
7.3.310.0000.00716.16
7.3.300.0070.00016.26
7.3.290.0100.00316.29
7.3.280.0100.00716.29
7.3.270.0170.00317.40
7.3.260.0130.00416.28
7.3.250.0080.00816.45
7.3.240.0030.01616.59
7.3.230.0110.01116.39
7.3.210.0130.00616.25
7.3.200.0120.01219.39
7.3.190.0140.00316.20
7.3.180.0090.00916.37
7.3.170.0000.01816.34
7.3.160.0080.00816.52
7.3.10.0060.00916.34
7.3.00.0120.00716.59
7.2.330.0070.01016.59
7.2.320.0130.00316.54
7.2.310.0100.00816.64
7.2.300.0030.01316.25
7.2.290.0050.01116.53
7.2.130.0050.01116.68
7.2.120.0070.00916.64
7.2.110.0070.00716.58
7.2.100.0090.00716.71
7.2.90.0110.00916.38
7.2.80.0120.00516.62
7.2.70.0080.00716.71
7.2.60.0130.00516.67
7.2.50.0060.00816.84
7.2.40.0120.00816.66
7.2.30.0110.00616.79
7.2.20.0110.00316.67
7.2.10.0140.00516.28
7.2.00.0070.00817.43
7.1.250.0060.01115.56
7.1.240.0070.01015.66
7.1.230.0040.00415.64
7.1.220.0000.01515.63
7.1.210.0110.00715.54
7.1.200.0060.00615.64
7.1.190.0090.00315.66
7.1.180.0150.00315.73
7.1.170.0100.00315.64
7.1.160.0040.00415.63
7.1.150.0040.00715.70
7.1.140.0030.01015.23
7.1.130.0070.00715.73
7.1.120.0030.00615.56
7.1.110.0100.00315.70
7.1.100.0060.00516.84
7.1.90.0040.01115.57
7.1.80.0040.01215.82
7.1.70.0050.00516.28
7.1.60.0080.01117.51
7.1.50.0090.00816.12
7.1.40.0060.00615.73
7.1.30.0040.00715.49
7.1.20.0090.00315.70
7.1.10.0060.00915.73
7.1.00.0080.03719.00
7.0.330.0000.01315.08
7.0.320.0000.01314.85
7.0.310.0040.00715.32
7.0.300.0060.00615.25
7.0.290.0070.00714.98
7.0.280.0080.00315.43
7.0.270.0030.00615.48
7.0.260.0060.00615.07
7.0.250.0040.00415.46
7.0.240.0060.00615.26
7.0.230.0030.00614.96
7.0.220.0090.00915.31
7.0.210.0090.00015.02
7.0.200.0000.00815.96
7.0.190.0000.00915.25
7.0.180.0030.00715.35
7.0.170.0080.00015.34
7.0.160.0000.00915.45
7.0.150.0030.00915.41
7.0.140.0070.03918.47
7.0.130.0030.00715.35
7.0.120.0030.01015.29
7.0.110.0070.00715.37
7.0.100.0090.00015.30
7.0.90.0070.00715.34
7.0.80.0070.00315.22
7.0.70.0030.00615.10
7.0.60.0070.04217.77
7.0.50.0060.04616.63
7.0.40.0020.03916.88
7.0.30.0240.03716.87
7.0.20.0100.02616.85
7.0.10.0060.02716.78
7.0.00.0030.04116.75
5.6.380.0080.00414.00
5.6.370.0060.00614.41
5.6.360.0090.00014.50
5.6.350.0090.00614.56
5.6.340.0030.01014.67
5.6.330.0140.00014.38
5.6.320.0030.01014.46
5.6.310.0070.00714.42
5.6.300.0000.00914.39
5.6.290.0200.01014.45
5.6.280.0050.03717.64
5.6.270.0000.01014.59
5.6.260.0270.00014.45
5.6.250.0100.00314.23
5.6.240.0060.00314.23
5.6.230.0080.00814.23
5.6.220.0110.00414.58
5.6.210.0120.03517.48
5.6.200.0060.04316.14
5.6.190.0100.03117.50
5.6.180.0200.04117.43
5.6.170.0140.04117.48
5.6.160.0040.02517.46
5.6.150.0080.04416.10
5.6.140.0080.02716.26
5.6.130.0060.04416.37
5.6.120.0100.04117.61
5.6.110.0060.03017.53
5.6.100.0050.04317.67
5.6.90.0050.02417.58
5.6.80.0070.03017.23
5.6.70.0130.00314.08
5.6.60.0060.00614.32
5.6.50.0060.00314.11
5.6.40.0070.00714.27
5.6.30.0090.00314.25
5.6.20.0030.00614.24
5.6.10.0080.00414.25
5.6.00.0080.00814.45
5.5.380.0000.00810.76
5.5.370.0100.00011.28
5.5.360.0040.00810.80
5.5.350.0080.04315.83
5.5.340.0040.03414.39
5.5.330.0050.04315.64
5.5.320.0120.02415.65
5.5.310.0170.03315.88
5.5.300.0070.04114.50
5.5.290.0080.04314.61
5.5.280.0050.02315.91
5.5.270.0070.02716.08
5.5.260.0100.02715.88
5.5.250.0060.04315.87
5.5.240.0120.04315.64
5.5.230.0040.00411.16
5.5.220.0060.00610.93
5.5.210.0000.00611.13
5.5.200.0000.01211.20
5.5.190.0030.00310.89
5.5.180.0000.00811.07
5.5.170.0030.00310.50
5.5.160.0060.00611.08
5.5.150.0060.00610.91
5.5.140.0050.00310.75
5.5.130.0080.00311.04
5.5.120.0090.00310.89
5.5.110.0030.00710.80
5.5.100.0000.00610.88
5.5.90.0060.00610.86
5.5.80.0000.00710.61
5.5.70.0060.00610.82
5.5.60.0030.00610.91
5.5.50.0030.00910.99
5.5.40.0030.00311.14
5.5.30.0060.00310.81
5.5.20.0160.00311.12
5.5.10.0070.00711.13
5.5.00.0030.00611.09
5.4.450.0030.03615.13
5.4.440.0500.03315.09
5.4.430.0320.03314.94
5.4.420.0350.00215.21
5.4.410.0320.00315.09
5.4.400.0300.00614.96
5.4.390.0330.00214.96
5.4.380.0350.00314.87
5.4.370.0420.00314.99
5.4.360.0430.00214.91
5.4.350.0350.00215.01
5.4.340.0020.02311.32
5.4.330.0000.01110.48
5.4.320.0020.02211.64
5.4.310.0110.01911.66
5.4.300.0070.02011.71
5.4.290.0060.02111.59
5.4.280.0050.02311.47
5.4.270.0060.02111.71
5.4.260.0040.02711.55
5.4.250.0120.04911.62
5.4.240.0090.02311.63
5.4.230.0050.02111.65
5.4.220.0030.02511.63
5.4.210.0070.02411.52
5.4.200.0070.02811.51
5.4.190.0060.02811.57
5.4.180.0050.02311.68
5.4.170.0070.03411.52
5.4.160.0080.02711.47
5.4.150.0090.05511.64
5.4.140.0060.04011.45
5.4.130.0050.02111.42
5.4.120.0090.01811.43
5.4.110.0070.02511.28
5.4.100.0060.02611.42
5.4.90.0120.03011.31
5.4.80.0070.04411.32
5.4.70.0060.02011.29
5.4.60.0090.02011.42
5.4.50.0020.02211.36
5.4.40.0080.02111.45
5.4.30.0080.02611.22
5.4.20.0090.02611.35
5.4.10.0130.02711.24
5.4.00.0070.02411.05
5.3.290.0040.03011.56
5.3.280.0040.02311.49
5.3.270.0080.02711.43
5.3.260.0060.03011.45
5.3.250.0070.02511.52
5.3.240.0070.02911.47
5.3.230.0050.02311.54
5.3.220.0090.01811.46
5.3.210.0090.02111.48
5.3.200.0080.03011.44
5.3.190.0050.02511.33
5.3.180.0060.02211.44
5.3.170.0040.02811.57
5.3.160.0040.02511.56
5.3.150.0070.02511.42
5.3.140.0050.02311.50
5.3.130.0090.02411.52
5.3.120.0090.02011.49
5.3.110.0090.02011.44
5.3.100.0030.02411.25
5.3.90.0090.02011.32
5.3.80.0080.01911.13
5.3.70.0110.02211.18
5.3.60.0060.02311.21
5.3.50.0080.01911.13
5.3.40.0090.02311.14
5.3.30.0070.02111.01
5.3.20.0070.02210.90
5.3.10.0120.01810.89
5.3.00.0090.02110.89
5.2.170.0060.0199.44
5.2.160.0060.0179.44
5.2.150.0070.0149.44
5.2.140.0050.0219.44
5.2.130.0060.0179.42
5.2.120.0090.0189.42
5.2.110.0090.0149.42
5.2.100.0020.0199.42
5.2.90.0070.0149.42
5.2.80.0080.0189.41
5.2.70.0070.0199.42
5.2.60.0030.0229.39
5.2.50.0080.0179.38
5.2.40.0110.0139.37
5.2.30.0070.0199.35
5.2.20.0070.0169.35
5.2.10.0040.0169.30
5.2.00.0040.0179.23
5.1.60.0020.0168.88
5.1.50.0020.0178.88
5.1.40.0030.0168.86
5.1.30.0050.0149.04
5.1.20.0050.0149.05
5.1.10.0040.0158.91
5.1.00.0090.0158.91
5.0.50.0020.0138.15
5.0.40.0020.0128.08
5.0.30.0040.0177.98
5.0.20.0040.0107.97
5.0.10.0030.0117.96
5.0.00.0030.0187.95
4.4.90.0030.0117.22
4.4.80.0030.0097.21
4.4.70.0050.0087.21
4.4.60.0030.0117.21
4.4.50.0040.0107.21
4.4.40.0020.0157.18
4.4.30.0010.0107.21
4.4.20.0030.0117.25
4.4.10.0020.0097.25
4.4.00.0030.0157.21
4.3.110.0030.0117.16
4.3.100.0040.0087.16
4.3.90.0030.0107.14
4.3.80.0040.0167.12
4.3.70.0020.0107.14
4.3.60.0060.0087.14
4.3.50.0040.0097.14
4.3.40.0030.0137.10
4.3.30.0030.0106.48
4.3.20.0030.0126.47
4.3.10.0020.0106.45
4.3.00.0050.0138.43

preferences:
45.07 ms | 400 KiB | 5 Q