3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface I {} function foo() { return new class { public static function foo() { return new class {}; } }; } var_dump(foo()::foo());

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.0040.01816.38
8.3.50.0110.00921.20
8.3.40.0070.01418.81
8.3.30.0140.00018.71
8.3.20.0000.00720.33
8.3.10.0050.00323.48
8.3.00.0000.00823.59
8.2.180.0040.01518.41
8.2.170.0110.00422.96
8.2.160.0030.01020.57
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00520.98
8.2.120.0040.00426.35
8.2.110.0090.00020.31
8.2.100.0040.00817.41
8.2.90.0060.00319.08
8.2.80.0030.00517.97
8.2.70.0030.00617.63
8.2.60.0070.00317.91
8.2.50.0040.00418.07
8.2.40.0040.00422.32
8.2.30.0000.00820.51
8.2.20.0000.00717.50
8.2.10.0040.00417.92
8.2.00.0040.00418.05
8.1.280.0070.01425.92
8.1.270.0030.00621.91
8.1.260.0040.00428.09
8.1.250.0000.00828.09
8.1.240.0090.00023.83
8.1.230.0040.00817.42
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0030.00617.22
8.1.180.0040.00418.10
8.1.170.0040.00718.57
8.1.160.0030.00620.79
8.1.150.0070.00018.74
8.1.140.0090.00219.51
8.1.130.0000.00717.64
8.1.120.0040.00417.29
8.1.110.0030.00517.30
8.1.100.0000.00917.28
8.1.90.0050.00317.36
8.1.80.0050.00317.38
8.1.70.0030.00317.30
8.1.60.0030.00517.57
8.1.50.0060.00317.43
8.1.40.0000.00817.33
8.1.30.0000.00817.48
8.1.20.0040.00417.54
8.1.10.0040.00417.41
8.1.00.0040.00817.45
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0000.00818.36
8.0.270.0070.00017.32
8.0.260.0000.00617.31
8.0.250.0030.00316.96
8.0.240.0000.00616.93
8.0.230.0070.00016.82
8.0.220.0030.00316.90
8.0.210.0040.00416.78
8.0.200.0070.00016.87
8.0.190.0030.00516.84
8.0.180.0070.00316.93
8.0.170.0050.00316.80
8.0.160.0040.00416.95
8.0.150.0030.00516.93
8.0.140.0000.00716.89
8.0.130.0060.00013.34
8.0.120.0030.00516.69
8.0.110.0000.00716.73
8.0.100.0000.00716.83
8.0.90.0000.00716.89
8.0.80.0000.01416.82
8.0.70.0040.00416.88
8.0.60.0070.00016.84
8.0.50.0020.00516.88
8.0.30.0120.00617.14
8.0.20.0100.00917.40
8.0.10.0000.00716.86
8.0.00.0130.00616.65
7.4.330.0050.00016.84
7.4.320.0000.00716.39
7.4.300.0070.00016.49
7.4.290.0030.00316.60
7.4.280.0030.00616.49
7.4.270.0000.00816.50
7.4.260.0030.00416.48
7.4.250.0000.00716.54
7.4.240.0060.00216.48
7.4.230.0000.00716.43
7.4.220.0060.01216.54
7.4.210.0060.00916.49
7.4.200.0070.00016.42
7.4.160.0120.00616.46
7.4.150.0090.01117.40
7.4.140.0160.00817.86
7.4.130.0110.01016.40
7.4.120.0160.00516.38
7.4.110.0100.01316.63
7.4.100.0060.01016.55
7.4.90.0160.00516.56
7.4.80.0060.01319.39
7.4.70.0030.01316.41
7.4.60.0070.01016.48
7.4.50.0040.01116.50
7.4.40.0040.01216.45
7.4.30.0120.00616.28
7.4.10.0070.01314.88
7.4.00.0100.00614.84
7.3.330.0060.00013.15
7.3.320.0090.00013.29
7.3.310.0000.00716.35
7.3.300.0070.00016.14
7.3.290.0060.01016.24
7.3.280.0100.00916.29
7.3.270.0100.00717.40
7.3.260.0110.01116.36
7.3.250.0070.01116.44
7.3.240.0120.00616.48
7.3.230.0090.00916.48
7.3.210.0130.00316.45
7.3.200.0030.01316.19
7.3.190.0060.01216.34
7.3.180.0090.00616.24
7.3.170.0130.00316.34
7.3.160.0040.01116.23
7.3.130.0000.01214.73
7.3.120.0050.00814.75
7.3.110.0050.01314.89
7.3.100.0070.00914.59
7.3.90.0070.00714.72
7.3.80.0020.00914.85
7.3.70.0070.00514.42
7.3.60.0040.00814.86
7.3.50.0030.01014.87
7.3.40.0120.00214.73
7.3.30.0060.00614.51
7.3.20.0080.00416.62
7.3.10.0080.00716.51
7.3.00.0030.01016.52
7.2.330.0150.00416.51
7.2.320.0120.00616.66
7.2.310.0100.00716.54
7.2.300.0110.00616.56
7.2.290.0080.00816.58
7.2.260.0070.01114.95
7.2.250.0070.01214.91
7.2.240.0090.00714.68
7.2.230.0090.00714.85
7.2.220.0020.01114.72
7.2.210.0030.01014.59
7.2.200.0050.01114.77
7.2.190.0080.00814.76
7.2.180.0030.00614.96
7.2.170.0070.00714.96
7.2.160.0000.00914.80
7.2.150.0110.00416.80
7.2.140.0030.01316.58
7.2.130.0070.00316.56
7.2.120.0000.01316.84
7.2.110.0100.00316.68
7.2.100.0070.00716.48
7.2.90.0040.01216.76
7.2.80.0060.01416.88
7.2.70.0070.01016.84
7.2.60.0050.01016.73
7.2.50.0030.00616.59
7.2.40.0040.01116.73
7.2.30.0040.01116.74
7.2.20.0100.00016.46
7.2.10.0000.01016.64
7.2.00.0050.00618.01
7.1.330.0030.00915.39
7.1.320.0050.00915.70
7.1.310.0050.00715.61
7.1.300.0100.00015.63
7.1.290.0070.00615.72
7.1.280.0030.01015.51
7.1.270.0070.00715.59
7.1.260.0020.01215.61
7.1.250.0090.00615.55
7.1.240.0080.00415.61
7.1.230.0030.00515.41
7.1.220.0000.01315.66
7.1.210.0090.00615.59
7.1.200.0040.01015.54
7.1.190.0040.00815.84
7.1.180.0040.00715.45
7.1.170.0040.00815.62
7.1.160.0030.01015.49
7.1.150.0040.01115.78
7.1.140.0000.00815.64
7.1.130.0050.00315.69
7.1.120.0070.00715.80
7.1.110.0060.00615.49
7.1.100.0030.01216.96
7.1.90.0070.00415.87
7.1.80.0060.00615.44
7.1.70.0080.00316.44
7.1.60.0070.01017.58
7.1.50.0090.00916.13
7.1.40.0090.00615.81
7.1.30.0070.01115.41
7.1.20.0090.00615.50
7.1.10.0000.00915.47
7.1.00.0060.03919.00
7.0.330.0080.00315.28
7.0.320.0060.00615.13
7.0.310.0050.00515.09
7.0.300.0060.00315.24
7.0.290.0050.00315.07
7.0.280.0070.00715.52
7.0.270.0030.01015.22
7.0.260.0030.01015.38
7.0.250.0070.00715.32
7.0.240.0000.01115.33
7.0.230.0000.01315.26
7.0.220.0000.01315.45
7.0.210.0050.00515.10
7.0.200.0050.00915.07
7.0.190.0030.01015.08
7.0.180.0120.00315.39
7.0.170.0000.01215.24
7.0.160.0070.00715.05
7.0.150.0040.00415.42
7.0.140.0120.00315.28
7.0.130.0080.00615.41
7.0.120.0040.00815.22
7.0.110.0090.00315.44
7.0.100.0040.00415.29
7.0.90.0120.00015.26
7.0.80.0060.00615.19
7.0.70.0000.01215.36
7.0.60.0030.02517.51
7.0.50.0030.02616.68
7.0.40.0110.04016.73
7.0.30.0190.02416.74
7.0.20.0170.03116.81
7.0.10.0080.02516.80
7.0.00.0050.04616.72
5.6.400.0090.00613.99
5.6.390.0090.00313.98
5.6.380.0060.00314.20
5.6.370.0000.01214.35
5.6.360.0070.01014.11
5.6.350.0030.00714.14
5.6.340.0000.01313.96
5.6.330.0060.00614.26
5.6.320.0030.01013.74
5.6.310.0080.00314.38
5.6.300.0070.00714.19
5.6.290.0070.00714.06
5.6.280.0080.02817.43
5.6.270.0100.00314.03
5.6.260.0070.01014.33
5.6.250.0040.00814.37
5.6.240.0110.00314.17
5.6.230.0060.00314.16
5.6.220.0070.00714.06
5.6.210.0100.03417.39
5.6.200.0030.04216.13
5.6.190.0040.02717.35
5.6.180.0130.04417.26
5.6.170.0120.04717.24
5.6.160.0080.02217.22
5.6.150.0050.04316.11
5.6.140.0070.02016.22
5.6.130.0080.02216.16
5.6.120.0080.03717.39
5.6.110.0030.03517.40
5.6.100.0080.04317.63
5.6.90.0060.03117.48
5.6.80.0130.03817.13
5.6.70.0100.00314.02
5.6.60.0070.00613.99
5.6.50.0090.00013.98
5.6.40.0110.00313.96
5.6.30.0050.00514.09
5.6.20.0100.00313.96
5.6.10.0060.00313.92
5.6.00.0110.00313.93
5.5.380.0030.01214.12
5.5.370.0110.00414.20
5.5.360.0030.01314.11
5.5.350.1300.01917.16
5.5.340.0030.04015.92
5.5.330.0050.03017.09
5.5.320.0180.04517.15
5.5.310.0260.02717.39
5.5.300.0070.03216.07
5.5.290.0050.03115.94
5.5.280.0080.02017.38
5.5.270.0070.04217.51
5.5.260.0080.02517.38
5.5.250.0030.04317.19
5.5.240.0070.02816.91
5.5.230.0030.00813.86
5.5.220.0000.00814.20
5.5.210.0000.01014.13
5.5.200.0100.00613.91
5.5.190.0080.00814.08
5.5.180.0060.00313.80
5.5.170.0030.01014.01
5.5.160.0060.00913.86
5.5.150.0000.00813.80
5.5.140.0030.00913.84
5.5.130.0000.01014.00
5.5.120.0030.01414.16
5.5.110.0110.00313.86
5.5.100.0080.00814.20
5.5.90.0030.01013.83
5.5.80.0040.00713.61
5.5.70.0030.01013.80
5.5.60.0030.01014.02
5.5.50.0060.00914.07
5.5.40.0090.00314.12
5.5.30.0080.00414.07
5.5.20.0000.01114.17
5.5.10.0000.01413.68
5.5.00.0000.00914.05

preferences:
56.85 ms | 401 KiB | 5 Q