3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait HasStaticPaths { public static $paths = []; } class FirstStaticPaths { use HasStaticPaths; } class SecondStaticPaths { use HasStaticPaths; } abstract class HasPaths { public static $paths = []; } class ThirdStaticPaths extends HasPaths {} class FourthStaticPaths extends HasPaths {} FirstStaticPaths::$paths[] = '/var'; SecondStaticPaths::$paths[] = '/usr'; ThirdStaticPaths::$paths[] = '/var'; FourthStaticPaths::$paths[] = '/usr'; var_dump(FirstStaticPaths::$paths); var_dump(SecondStaticPaths::$paths); var_dump(ThirdStaticPaths::$paths); var_dump(FourthStaticPaths::$paths);

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.120.0050.00320.57
8.4.110.0150.00518.86
8.4.100.0090.01117.69
8.4.90.0100.01020.64
8.4.80.0130.00924.39
8.4.70.0130.00618.88
8.4.60.0110.01220.79
8.4.50.0100.01018.73
8.4.40.0100.01017.49
8.4.30.0090.00620.36
8.4.20.0110.00419.64
8.4.10.0030.00619.73
8.3.250.0050.00318.77
8.3.240.0070.00316.77
8.3.230.0120.00716.50
8.3.220.0080.01019.11
8.3.210.0080.00916.61
8.3.200.0120.00916.83
8.3.190.0100.00817.12
8.3.180.0110.00518.94
8.3.170.0070.01017.12
8.3.160.0150.00316.68
8.3.150.0110.00717.18
8.3.140.0080.00016.70
8.3.130.0080.00016.61
8.3.120.0170.00319.16
8.3.110.0100.01020.94
8.3.100.0130.00624.06
8.3.90.0030.00526.77
8.3.80.0070.00316.75
8.3.70.0210.00016.75
8.3.60.0070.01418.55
8.3.50.0090.00424.39
8.3.40.0070.00720.34
8.3.30.0110.01118.90
8.3.20.0080.00020.90
8.3.10.0030.00720.20
8.3.00.0080.00022.45
8.2.290.0040.00517.46
8.2.280.0090.01020.07
8.2.270.0200.00016.68
8.2.260.0120.00617.40
8.2.250.0000.00818.39
8.2.240.0040.00418.94
8.2.230.0090.00622.58
8.2.220.0120.00637.54
8.2.210.0040.01126.77
8.2.200.0060.00316.63
8.2.190.0100.01016.59
8.2.180.0090.00616.63
8.2.170.0110.00422.96
8.2.160.0070.00721.00
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00526.16
8.2.110.0000.01021.00
8.2.100.0080.00417.93
8.2.90.0050.00319.14
8.2.80.0060.00317.97
8.2.70.0040.00417.63
8.2.60.0030.00517.93
8.2.50.0000.00918.07
8.2.40.0040.00418.34
8.2.30.0040.00419.46
8.2.20.0040.00418.17
8.2.10.0040.00419.37
8.2.00.0050.00219.22
8.1.330.0100.00817.63
8.1.320.0100.00916.45
8.1.310.0040.00416.89
8.1.300.0150.00316.31
8.1.290.0040.00818.88
8.1.280.0130.00325.92
8.1.270.0000.00820.75
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0100.00019.66
8.1.230.0080.00417.83
8.1.220.0090.00017.74
8.1.210.0040.00418.77
8.1.200.0030.00617.36
8.1.190.0040.00417.35
8.1.180.0030.00618.10
8.1.170.0080.00018.50
8.1.160.0000.00822.16
8.1.150.0000.00718.83
8.1.140.0080.00018.81
8.1.130.0030.00321.84
8.1.120.0050.00317.54
8.1.110.0030.00517.43
8.1.100.0060.00317.47
8.1.90.0000.00817.47
8.1.80.0020.00517.49
8.1.70.0000.00717.50
8.1.60.0040.00417.53
8.1.50.0090.00017.47
8.1.40.0030.00617.52
8.1.30.0040.00417.66
8.1.20.0000.00817.61
8.1.10.0040.00417.57
8.1.00.0040.00417.38
8.0.300.0020.00518.77
8.0.290.0050.00216.63
8.0.280.0000.00818.52
8.0.270.0030.00318.00
8.0.260.0000.00620.10
8.0.250.0000.00716.89
8.0.240.0000.00716.89
8.0.230.0000.00717.02
8.0.220.0000.00716.95
8.0.210.0000.00816.79
8.0.200.0030.00316.88
8.0.190.0050.00317.00
8.0.180.0030.00516.94
8.0.170.0000.00916.96
8.0.160.0000.00716.98
8.0.150.0040.00416.84
8.0.140.0000.00716.89
8.0.130.0000.00613.36
8.0.120.0040.00416.88
8.0.110.0040.00416.88
8.0.100.0070.00016.78
8.0.90.0000.00816.75
8.0.80.0060.00816.86
8.0.70.0000.00816.80
8.0.60.0070.00016.85
8.0.50.0070.00017.00
8.0.30.0110.00717.18
8.0.20.0090.01017.09
8.0.10.0040.00417.09
8.0.00.0030.01416.77
7.4.330.0000.00615.55
7.4.320.0040.00416.42
7.4.300.0030.00316.36
7.4.290.0000.00816.47
7.4.280.0040.00416.60
7.4.270.0040.00416.56
7.4.260.0050.00013.23
7.4.250.0070.00016.57
7.4.240.0050.00316.47
7.4.230.0070.00016.56
7.4.220.0020.00516.24
7.4.210.0040.01116.44
7.4.200.0050.00316.36
7.4.130.0100.00916.56
7.4.120.0090.00916.65
7.4.110.0130.00616.46
7.4.100.0110.00716.57
7.4.90.0110.00716.55
7.4.80.0090.00919.39
7.4.70.0160.00016.38
7.4.60.0120.00916.73
7.4.50.0120.00316.41
7.4.40.0040.01216.39
7.4.30.0040.01816.57
7.4.20.0040.01316.41
7.4.10.0090.00916.34
7.4.00.0090.01216.43
7.3.330.0050.00316.38
7.3.320.0050.00013.23
7.3.310.0040.00416.14
7.3.300.0030.00316.25
7.3.290.0050.01016.23
7.3.280.0060.01216.20
7.3.260.0060.01216.26
7.3.230.0060.01316.59
7.3.210.0100.00716.33
7.3.200.0090.01616.29
7.3.190.0130.00716.59
7.3.180.0070.01016.17
7.3.170.0000.01716.21
7.3.160.0060.01316.33
7.3.150.0150.00616.14
7.3.140.0150.00716.36
7.3.130.0170.00716.30
7.3.120.0090.00916.18
7.3.110.0140.00916.46
7.3.100.0120.01216.16
7.3.90.0110.01316.14
7.3.80.0100.01316.46
7.3.70.0160.00816.16
7.3.60.0100.01116.32
7.3.50.0160.01316.20
7.3.40.0110.01216.15
7.3.30.0130.01016.23
7.3.20.0100.01018.16
7.3.10.0070.01818.32
7.3.00.0170.00718.29
7.2.330.0140.00716.61
7.2.320.0050.01316.71
7.2.310.0070.01016.72
7.2.300.0120.00616.45
7.2.290.0060.01616.54
7.2.280.0100.01216.38
7.2.270.0080.01216.39
7.2.260.0110.01116.61
7.2.250.0120.01116.52
7.2.240.0080.01816.44
7.2.230.0180.01016.47
7.2.220.0140.00916.42
7.2.210.0140.00816.50
7.2.200.0160.00616.64
7.2.190.0150.00716.51
7.2.180.0150.01216.57
7.2.170.0220.00316.43
7.2.160.0130.01016.64
7.2.150.0100.01218.54
7.2.140.0190.00518.42
7.2.130.0110.01118.36
7.2.120.0080.01218.55
7.2.110.0100.01318.28
7.2.100.0140.01118.49
7.2.90.0120.00818.45
7.2.80.0090.01318.56
7.2.70.0040.01418.43
7.2.60.0170.00318.22
7.2.50.0170.00818.51
7.2.40.0090.01218.30
7.2.30.0170.00718.56
7.2.20.0170.00918.51
7.2.10.0090.01218.35
7.2.00.0110.01418.34
7.1.330.0160.00917.08
7.1.320.0140.00916.86
7.1.310.0120.00916.76
7.1.300.0150.00816.86
7.1.290.0120.01216.96
7.1.280.0150.01017.02
7.1.270.0090.01716.93
7.1.260.0060.02117.01
7.1.250.0110.01117.08
7.1.240.0150.00817.03
7.1.230.0220.00617.02
7.1.220.0190.00817.11
7.1.210.0050.00816.98
7.1.200.0100.01317.13
7.1.190.0100.00917.15
7.1.180.0110.01217.34
7.1.170.0160.00317.01
7.1.160.0040.01517.11
7.1.150.0090.01216.93
7.1.140.0060.01317.24
7.1.130.0090.01517.00
7.1.120.0170.00817.16
7.1.110.0080.01817.28
7.1.100.0080.01516.99
7.1.90.0080.01117.03
7.1.80.0130.00617.23
7.1.70.0130.01017.13
7.1.60.0150.00616.98
7.1.50.0150.00817.27
7.1.40.0170.00317.17
7.1.30.0110.01316.97
7.1.20.0110.01216.93
7.1.10.0150.00317.02
7.1.00.0130.00717.02
7.0.330.0180.01916.89
7.0.320.0160.00816.88
7.0.310.0200.00416.61
7.0.300.0130.01317.02
7.0.290.0090.00917.09
7.0.280.0140.00916.77
7.0.270.0100.01016.93
7.0.260.0130.01016.90
7.0.250.0150.00516.95
7.0.240.0050.01616.95
7.0.230.0070.01316.61
7.0.220.0140.01016.83
7.0.210.0100.01016.88
7.0.200.0070.01316.74
7.0.190.0060.01816.92
7.0.180.0130.00617.04
7.0.170.0090.01316.79
7.0.160.0100.01016.81
7.0.150.0110.01116.86
7.0.140.0160.00316.83
7.0.130.0070.01116.93
7.0.120.0060.01316.76
7.0.110.0180.00416.95
7.0.100.0050.01516.71
7.0.90.0100.01016.80
7.0.80.0110.00816.93
7.0.70.0130.01016.74
7.0.60.0180.00316.84
7.0.50.0110.01116.92
7.0.40.0190.00316.84
7.0.30.0160.00416.81
7.0.20.0160.00916.82
7.0.10.0090.01316.92
7.0.00.0080.01116.99
5.6.400.0180.01115.56
5.6.390.0200.01115.57
5.6.380.0120.01315.62
5.6.370.0100.01615.87
5.6.360.0210.00816.04
5.6.350.0220.00715.37
5.6.340.0090.01815.98
5.6.330.0080.01315.71
5.6.320.0140.01415.59
5.6.310.0100.01415.90
5.6.300.0120.01215.71
5.6.290.0100.01715.77
5.6.280.0130.00915.65
5.6.270.0090.01515.52
5.6.260.0070.02115.66
5.6.250.0140.00615.66
5.6.240.0040.01815.78
5.6.230.0100.01615.70
5.6.220.0170.00715.83
5.6.210.0130.01215.91
5.6.200.0130.01315.79
5.6.190.0130.01015.65
5.6.180.0100.01315.87
5.6.170.0150.01115.59
5.6.160.0130.01315.89
5.6.150.0120.01815.75
5.6.140.0130.01215.61
5.6.130.0180.00715.39
5.6.120.0160.00415.60
5.6.110.0100.01315.57
5.6.100.0200.00515.84
5.6.90.0110.01415.80
5.6.80.0190.00815.55
5.6.70.0190.01115.74
5.6.60.0130.02215.43
5.6.50.0160.00815.68
5.6.40.0160.01015.63
5.6.30.0180.01115.68
5.6.20.0100.01615.82
5.6.10.0160.00815.62
5.6.00.0130.01315.55
5.5.380.0060.02215.72
5.5.370.0160.00815.57
5.5.360.0150.01215.45
5.5.350.0090.01715.71
5.5.340.0140.00715.58
5.5.330.0150.01215.62
5.5.320.0120.01215.66
5.5.310.0120.01215.46
5.5.300.0090.01815.77
5.5.290.0180.00915.91
5.5.280.0080.01215.69
5.5.270.0110.00915.59
5.5.260.0160.00815.84
5.5.250.0210.00915.85
5.5.240.0170.01015.51
5.5.230.0200.00615.63
5.5.220.0190.01115.75
5.5.210.0150.01215.62
5.5.200.0170.01015.55
5.5.190.0220.00815.55
5.5.180.0100.01815.84
5.5.170.0120.01215.63
5.5.160.0220.00715.68
5.5.150.0170.00715.82
5.5.140.0140.01015.53
5.5.130.0210.00315.70
5.5.120.0140.01315.62
5.5.110.0220.00715.35
5.5.100.0140.01515.47
5.5.90.0170.01015.83
5.5.80.0150.01315.54
5.5.70.0110.01915.84
5.5.60.0170.01015.71
5.5.50.0190.01315.66
5.5.40.0140.01815.71
5.5.30.0150.01315.33
5.5.20.0110.02115.61
5.5.10.0160.01615.65
5.5.00.0070.02315.36
5.4.450.0080.00812.75
5.4.440.0100.00712.76
5.4.430.0080.00812.50
5.4.420.0070.00712.54
5.4.410.0080.00912.64
5.4.400.0130.00412.61
5.4.390.0100.01012.77
5.4.380.0160.00612.43
5.4.370.0070.00812.37
5.4.360.0140.00712.60
5.4.350.0100.01112.55
5.4.340.0130.00312.63
5.4.330.0120.00512.53
5.4.320.0090.01312.53
5.4.310.0170.00312.57
5.4.300.0110.00512.48
5.4.290.0140.00412.61
5.4.280.0180.00612.57
5.4.270.0120.00612.38
5.4.260.0130.00912.39
5.4.250.0130.00712.79
5.4.240.0180.00612.77
5.4.230.0130.01012.30
5.4.220.0120.01212.41
5.4.210.0120.01212.46
5.4.200.0150.00612.48
5.4.190.0140.01212.47
5.4.180.0040.01912.21
5.4.170.0170.00712.46
5.4.160.0060.01512.23
5.4.150.0090.01012.48
5.4.140.0200.00012.51
5.4.130.0090.00912.73
5.4.120.0140.00812.31
5.4.110.0110.00912.55
5.4.100.0180.00512.35
5.4.90.0240.00012.64
5.4.80.0140.00712.39
5.4.70.0120.01212.66
5.4.60.0050.01912.73
5.4.50.0080.01512.52
5.4.40.0060.01412.59
5.4.30.0230.00612.68
5.4.20.0080.01112.59
5.4.10.0150.00312.61
5.4.00.0260.00312.63
5.3.290.0040.01412.73
5.3.280.0160.00812.70
5.3.270.0160.00912.64
5.3.260.0080.01512.62
5.3.250.0120.01212.66
5.3.240.0060.01212.49
5.3.230.0180.00512.69
5.3.220.0130.00812.52
5.3.210.0050.01812.61
5.3.200.0100.01312.65
5.3.190.0150.00912.76
5.3.180.0030.01512.80
5.3.170.0080.01512.71
5.3.160.0110.01112.93
5.3.150.0120.00812.77
5.3.140.0160.01112.69
5.3.130.0090.01512.78
5.3.120.0070.01712.68
5.3.110.0040.01512.84
5.3.100.0130.00812.84
5.3.90.0100.00712.86
5.3.80.0030.01012.70
5.3.70.0000.01312.67
5.3.60.0000.01312.80
5.3.50.0120.00812.87
5.3.40.0030.01012.68
5.3.30.0030.01312.68
5.3.20.0090.00512.67
5.3.10.0110.00812.41
5.3.00.0090.00912.48
5.2.170.0100.00611.72
5.2.160.0000.01411.79
5.2.150.0080.01011.78
5.2.140.0060.00611.79
5.2.130.0160.00011.73
5.2.120.0060.01111.78
5.2.110.0030.01011.67
5.2.100.0090.00911.73
5.2.90.0030.01311.69
5.2.80.0060.00911.64
5.2.70.0060.00911.71
5.2.60.0110.00611.58
5.2.50.0100.00711.71
5.2.40.0100.00711.72
5.2.30.0060.01211.75
5.2.20.0100.00311.48
5.2.10.0110.00411.52
5.2.00.0090.00511.36
5.1.60.0090.00310.85
5.1.50.0050.00510.85
5.1.40.0100.00310.88
5.1.30.0000.01211.08
5.1.20.0040.01110.85
5.1.10.0060.01010.93
5.1.00.0060.00510.85
5.0.50.0030.00910.85
5.0.40.0030.00810.85
5.0.30.0040.01010.85
5.0.20.0040.01110.85
5.0.10.0070.00710.85
5.0.00.0050.00510.85
4.4.90.0080.00010.85
4.4.80.0070.00010.85
4.4.70.0050.00310.85
4.4.60.0000.00710.85
4.4.50.0030.00310.85
4.4.40.0050.00310.85
4.4.30.0060.00310.85
4.4.20.0040.00410.85
4.4.10.0050.00310.85
4.4.00.0000.00710.85
4.3.110.0000.00610.85
4.3.100.0000.00810.85
4.3.90.0000.00710.85
4.3.80.0000.00710.85
4.3.70.0000.00810.85
4.3.60.0000.00810.85
4.3.50.0030.00310.85
4.3.40.0030.00510.85
4.3.30.0040.00410.85
4.3.20.0030.00510.85
4.3.10.0020.00310.85
4.3.00.0040.00410.85

preferences:
31.64 ms | 403 KiB | 5 Q