3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* The fatal error has been fixed in PHP 5.5.21 */ trait MyTrait { public function __construct() {} } class MyParent{ public function __construct() {} } class MyClass1 extends MyParent{ use MyTrait; } class MyClass2 extends MyParent { use MyTrait; } $o1 = new MyClass1; $o2 = new MyClass2;

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.5.00.0100.01220.06
8.4.150.0020.00114.05
8.4.140.0130.00817.48
8.4.130.0110.01017.82
8.4.120.0120.00820.48
8.4.110.0070.00422.46
8.4.100.0070.00417.52
8.4.90.0130.00818.44
8.4.80.0150.00419.27
8.4.70.0110.01218.00
8.4.60.0080.01219.11
8.4.50.0150.00617.64
8.4.40.0080.00017.64
8.4.30.0000.02017.77
8.4.20.0100.01020.63
8.4.10.0090.00017.63
8.3.280.0110.01118.44
8.3.270.0070.01216.44
8.3.260.0050.00616.70
8.3.250.0080.01018.78
8.3.240.0130.00716.40
8.3.230.0110.01016.41
8.3.220.0060.00217.10
8.3.210.0070.00816.81
8.3.200.0050.00416.60
8.3.190.0120.00616.61
8.3.180.0070.01018.54
8.3.170.0090.00016.66
8.3.160.0070.01118.58
8.3.150.0060.00317.22
8.3.140.0080.00418.63
8.3.130.0120.00318.29
8.3.120.0090.00020.67
8.3.110.0060.00320.94
8.3.100.0080.00024.06
8.3.90.0080.00026.77
8.3.80.0090.00016.40
8.3.70.0150.00316.58
8.3.60.0090.00618.43
8.3.50.0090.00418.25
8.3.40.0070.01018.59
8.3.30.0070.00718.72
8.3.20.0000.00818.51
8.3.10.0000.00721.85
8.3.00.0040.00423.62
8.2.290.0030.00520.47
8.2.280.0120.00618.68
8.2.270.0140.00716.62
8.2.260.0040.01416.57
8.2.250.0110.00016.51
8.2.240.0030.00517.33
8.2.230.0030.00622.58
8.2.220.0140.00437.54
8.2.210.0090.00926.77
8.2.200.0060.00316.63
8.2.190.0110.01116.88
8.2.180.0040.01125.92
8.2.170.0110.01122.96
8.2.160.0030.01022.11
8.2.150.0000.00824.18
8.2.140.0090.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00319.82
8.2.110.0090.00020.32
8.2.100.0110.00017.91
8.2.90.0040.00417.84
8.2.80.0000.00817.97
8.2.70.0080.00018.03
8.2.60.0030.00517.80
8.2.50.0000.00818.10
8.2.40.0000.00821.07
8.2.30.0000.00720.69
8.2.20.0040.00418.14
8.2.10.0020.00518.06
8.2.00.0040.00418.99
8.1.330.0130.00421.89
8.1.320.0130.00916.12
8.1.310.0140.00316.87
8.1.300.0090.00918.50
8.1.290.0000.00930.84
8.1.280.0130.00925.92
8.1.270.0040.00421.85
8.1.260.0000.01426.35
8.1.250.0060.00328.09
8.1.240.0050.00522.48
8.1.230.0060.00621.04
8.1.220.0040.00417.74
8.1.210.0030.00618.78
8.1.200.0000.00917.36
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0050.00318.46
8.1.160.0050.00318.91
8.1.150.0040.00418.89
8.1.140.0040.00418.77
8.1.130.0070.00022.03
8.1.120.0000.00717.43
8.1.110.0040.00417.45
8.1.100.0000.00717.39
8.1.90.0040.00417.42
8.1.80.0050.00317.46
8.1.70.0080.00017.47
8.1.60.0050.00517.57
8.1.50.0050.00317.48
8.1.40.0070.00317.54
8.1.30.0030.00517.62
8.1.20.0070.00017.64
8.1.10.0000.00817.52
8.1.00.0040.00417.46
8.0.300.0040.00419.98
8.0.290.0050.00316.75
8.0.280.0000.00718.36
8.0.270.0030.00316.80
8.0.260.0030.00318.32
8.0.250.0030.00316.88
8.0.240.0000.00816.86
8.0.230.0040.00416.92
8.0.220.0000.00816.89
8.0.210.0000.00716.78
8.0.200.0030.00316.93
8.0.190.0030.00516.84
8.0.180.0030.00516.94
8.0.170.0030.00616.82
8.0.160.0000.00716.88
8.0.150.0000.00716.92
8.0.140.0050.00316.78
8.0.130.0030.00313.28
8.0.120.0070.00016.85
8.0.110.0030.00616.74
8.0.100.0080.00016.78
8.0.90.0000.00716.79
8.0.80.0110.01116.78
8.0.70.0080.00016.67
8.0.60.0030.00516.96
8.0.50.0040.00416.76
8.0.30.0140.00416.94
8.0.20.0100.01317.40
8.0.10.0030.00616.79
8.0.00.0060.01116.67
7.4.330.0040.00415.71
7.4.320.0070.00016.48
7.4.300.0060.00016.49
7.4.290.0000.00716.50
7.4.280.0070.00016.64
7.4.270.0030.00316.58
7.4.260.0070.00016.58
7.4.250.0000.00716.56
7.4.240.0030.00316.61
7.4.230.0030.00316.55
7.4.220.0080.00016.59
7.4.210.0120.00416.64
7.4.200.0070.00016.71
7.4.160.0090.00716.39
7.4.140.0110.00917.86
7.4.130.0040.01316.46
7.4.120.0080.00916.54
7.4.110.0130.00316.60
7.4.100.0140.00416.64
7.4.90.0060.01016.39
7.4.80.0120.00619.39
7.4.70.0110.00616.51
7.4.60.0120.00616.44
7.4.50.0190.00516.40
7.4.40.0060.01716.45
7.4.30.0080.01316.43
7.4.20.0130.01016.25
7.4.10.0180.00616.55
7.4.00.0080.01015.76
7.3.330.0000.00513.29
7.3.320.0000.00513.26
7.3.310.0070.00016.22
7.3.300.0000.00716.32
7.3.290.0050.00216.27
7.3.280.0110.00416.22
7.3.260.0130.00916.34
7.3.240.0120.00716.47
7.3.230.0040.01316.24
7.3.210.0060.01416.43
7.3.200.0030.01316.47
7.3.190.0140.00316.63
7.3.180.0030.01416.31
7.3.170.0100.01016.30
7.3.160.0070.01316.60
7.3.150.0060.00316.42
7.3.140.0100.01316.39
7.3.130.0110.01116.35
7.3.120.0120.01116.23
7.3.110.0130.01016.55
7.3.100.0170.00816.20
7.3.90.0120.01116.51
7.3.80.0080.01015.25
7.3.70.0060.00815.16
7.3.60.0080.00815.29
7.3.50.0060.01015.27
7.3.40.0150.00215.14
7.3.30.0110.00615.26
7.3.20.0110.00715.66
7.3.10.0110.00915.84
7.3.00.0090.01015.96
7.2.330.0130.00616.66
7.2.320.0060.01216.62
7.2.310.0060.01316.72
7.2.300.0140.00316.46
7.2.290.0100.00916.70
7.2.280.0030.00616.57
7.2.270.0000.02416.78
7.2.260.0070.01316.54
7.2.250.0040.01816.68
7.2.240.0090.01216.62
7.2.230.0060.01316.73
7.2.220.0130.01316.65
7.2.210.0120.00715.40
7.2.200.0080.00915.39
7.2.190.0060.01115.44
7.2.180.0120.00715.43
7.2.170.0050.01115.33
7.2.160.0060.00915.42
7.2.150.0110.00915.96
7.2.140.0120.00516.15
7.2.130.0140.00515.94
7.2.120.0070.01316.01
7.2.110.0130.01015.97
7.2.100.0310.01015.62
7.2.90.0260.00815.63
7.2.80.0410.00915.76
7.2.70.0260.00615.84
7.2.60.0270.00915.78
7.2.50.0250.01115.74
7.2.40.0250.01115.72
7.2.30.0280.00715.70
7.2.20.0260.00615.79
7.2.10.0240.00715.74
7.2.00.0260.00815.61
7.1.330.0060.01515.45
7.1.320.0110.01415.36
7.1.310.0150.00914.84
7.1.300.0100.00914.90
7.1.290.0060.01314.96
7.1.280.0090.00714.91
7.1.270.0100.00914.93
7.1.260.0140.00314.92
7.1.250.0100.01114.86
7.1.240.0140.00814.93
7.1.230.0140.00914.79
7.1.220.0250.00814.56
7.1.210.0240.00914.51
7.1.200.0320.00814.54
7.1.190.0260.01114.58
7.1.180.0570.00814.62
7.1.170.0300.00814.67
7.1.160.0320.00714.49
7.1.150.0260.00914.68
7.1.140.0240.00514.57
7.1.130.0290.00714.60
7.1.120.0360.00914.58
7.1.110.0300.00814.66
7.1.100.0360.00914.67
7.1.90.0290.01214.41
7.1.80.0250.00814.60
7.1.70.0190.01214.60
7.1.60.0420.00818.97
7.1.50.0310.00819.01
7.1.40.0380.00919.17
7.1.30.0340.00919.01
7.1.20.0360.00819.09
7.1.10.0320.00614.39
7.1.00.0300.00714.55
7.0.330.0090.01014.47
7.0.320.0170.00014.96
7.0.310.0150.00615.05
7.0.300.0110.00814.98
7.0.290.0170.00415.13
7.0.280.0030.01414.77
7.0.270.0100.00915.05
7.0.260.0070.01115.08
7.0.250.0070.01014.78
7.0.240.0090.00915.18
7.0.230.0030.01615.14
7.0.220.0150.00314.94
7.0.210.0070.01115.21
7.0.200.0100.00615.05
7.0.190.0170.00015.17
7.0.180.0100.00714.89
7.0.170.0030.01314.99
7.0.160.0140.00715.04
7.0.150.0160.00515.14
7.0.140.0130.00614.86
7.0.130.0100.01415.16
7.0.120.0130.00715.01
7.0.110.0110.01114.96
7.0.100.0110.01115.09
7.0.90.0110.00815.01
7.0.80.0150.00414.98
7.0.70.0090.01214.71
7.0.60.0090.01215.16
7.0.50.0140.00315.07
7.0.40.0130.00314.89
7.0.30.0070.01014.87
7.0.20.0060.01115.04
7.0.10.0060.01214.81
7.0.00.0030.01615.05
5.6.400.0140.00814.94
5.6.390.0130.00714.72
5.6.380.0110.00914.57
5.6.370.0170.00715.96
5.6.360.0030.02115.78
5.6.350.0100.01315.68
5.6.340.0150.00615.65
5.6.330.0080.01215.96
5.6.320.0100.01415.95
5.6.310.0120.00915.76
5.6.300.0160.01315.70
5.6.290.0080.01615.63
5.6.280.0140.00715.54
5.6.270.0210.00015.89
5.6.260.0090.01315.78
5.6.250.0070.01616.04
5.6.240.0070.01516.06
5.6.230.0090.01516.02
5.6.220.0140.01015.64
5.6.210.0060.01215.74
5.6.200.0100.01415.80
5.6.190.0070.01715.55
5.6.180.0070.01115.70
5.6.170.0120.00915.69
5.6.160.0130.01015.54
5.6.150.0090.01515.70
5.6.140.0090.01315.88
5.6.130.0120.01215.70
5.6.120.0140.00615.77
5.6.110.0030.01915.67
5.6.100.0120.01315.84
5.6.90.0100.01315.58
5.6.80.0090.01315.90
5.6.70.0070.01415.70
5.6.60.0070.01515.62
5.6.50.0120.00915.71
5.6.40.0090.01515.46
5.6.30.0070.01415.64
5.6.20.0100.01415.68
5.6.10.0090.00915.67
5.6.00.0100.01015.54
5.5.380.0250.00915.82
5.5.370.0310.02615.80
5.5.360.0160.01715.67
5.5.350.0150.01515.61
5.5.340.0300.00315.80
5.5.330.0200.01415.92
5.5.320.0180.01115.84
5.5.310.0180.01215.55
5.5.300.0150.02015.47
5.5.290.0190.01115.75
5.5.280.0230.00915.97
5.5.270.0120.02015.59
5.5.260.0160.01315.84
5.5.250.0170.01215.68
5.5.240.0230.01115.63
5.5.230.0270.00815.80
5.5.220.0230.00715.85
5.5.210.0200.01015.54
5.5.200.0150.01215.25
5.5.190.0190.01415.69
5.5.180.0160.01315.69
5.5.170.0230.00615.51
5.5.160.0180.01315.48
5.5.150.0210.00815.50
5.5.140.0230.00715.43
5.5.130.0120.01715.34
5.5.120.0220.01115.41
5.5.110.0200.01415.67
5.5.100.0140.01915.55
5.5.90.0420.05015.61
5.5.80.0280.02415.37
5.5.70.0150.01515.34
5.5.60.0350.01115.33
5.5.50.0120.01215.51
5.5.40.0310.00015.36
5.5.30.0270.01315.54
5.5.20.0130.02015.73
5.5.10.0210.01615.32
5.5.00.0170.01415.47
5.4.450.0140.01212.35
5.4.440.0200.00512.57
5.4.430.0170.00712.62
5.4.420.0190.00712.57
5.4.410.0210.00712.58
5.4.400.0200.00412.62
5.4.390.0150.01312.38
5.4.380.0210.00812.36
5.4.370.0190.00712.38
5.4.360.0090.01812.36
5.4.350.0170.01212.63
5.4.340.0170.00912.43
5.4.330.0200.01012.48
5.4.320.0200.00612.42
5.4.310.0200.00612.39
5.4.300.0250.00312.54
5.4.290.0200.00712.32
5.4.280.0180.00612.35
5.4.270.0190.00312.25
5.4.260.0140.01112.33
5.4.250.0300.01812.13
5.4.240.0210.02212.48
5.4.230.0170.00712.30
5.4.220.0100.01012.23
5.4.210.0220.00012.25
5.4.200.0110.01112.30
5.4.190.0140.00712.41
5.4.180.0140.00912.39
5.4.170.0160.00912.26
5.4.160.0170.00912.41
5.4.150.0160.00612.29
5.4.140.0160.01012.44
5.4.130.0120.00912.38
5.4.120.0170.01612.39
5.4.110.0180.00312.34
5.4.100.0180.00812.25
5.4.90.0180.00612.30
5.4.80.0210.00412.41
5.4.70.0090.01012.27
5.4.60.0100.01012.46
5.4.50.0070.01412.38
5.4.40.0140.00812.41
5.4.30.0120.01212.41
5.4.20.0090.01412.40
5.4.10.0100.01312.45
5.4.00.0180.00912.35
5.3.290.0060.01512.67
5.3.280.0100.01912.71
5.3.270.0190.00912.64
5.3.260.0180.01212.66
5.3.250.0180.01012.73
5.3.240.0220.00412.48
5.3.230.0150.01112.87
5.3.220.0150.01412.59
5.3.210.0200.00412.64
5.3.200.0210.00812.72
5.3.190.0220.00612.66
5.3.180.0180.00612.82
5.3.170.0180.00812.77
5.3.160.0100.02012.85
5.3.150.0210.00712.76
5.3.140.0170.00712.81
5.3.130.0260.00812.75
5.3.120.0180.00812.83
5.3.110.0250.00612.74
5.3.100.0170.00912.84
5.3.90.0190.00613.05
5.3.80.0130.01112.64
5.3.70.0130.01312.71
5.3.60.0190.00612.98
5.3.50.0110.01112.64
5.3.40.0150.01112.76
5.3.30.0120.01212.54
5.3.20.0120.01312.66
5.3.10.0090.01612.39
5.3.00.0140.01012.41
5.2.170.0150.00911.80
5.2.160.0110.01411.78
5.2.150.0100.01211.79
5.2.140.0200.00611.72
5.2.130.0160.00711.71
5.2.120.0150.00911.71
5.2.110.0150.00711.71
5.2.100.0180.00311.94
5.2.90.0220.00911.73
5.2.80.0170.00711.71
5.2.70.0180.00411.71
5.2.60.0140.00511.71
5.2.50.0170.00811.73
5.2.40.0090.01011.71
5.2.30.0140.01511.85
5.2.20.0070.01411.71
5.2.10.0160.00611.71
5.2.00.0150.00611.71
5.1.60.0160.00311.71
5.1.50.0120.00611.71
5.1.40.0120.00511.71
5.1.30.0150.00411.71
5.1.20.0120.00611.71
5.1.10.0080.00811.71
5.1.00.0140.00811.71
5.0.50.0180.00011.71
5.0.40.0110.00511.71
5.0.30.0120.00611.71
5.0.20.0060.00911.71
5.0.10.0110.00411.71
5.0.00.0130.00311.71
4.4.90.0050.00511.71
4.4.80.0070.00311.71
4.4.70.0110.00011.71
4.4.60.0050.00511.71
4.4.50.0110.00011.71
4.4.40.0030.00611.71
4.4.30.0070.00211.71
4.4.20.0050.00511.71
4.4.10.0110.00011.71
4.4.00.0050.00511.71
4.3.110.0060.00311.71
4.3.100.0030.00611.71
4.3.90.0070.00311.71
4.3.80.0110.00011.71
4.3.70.0090.00011.71
4.3.60.0090.00311.71
4.3.50.0060.00711.71
4.3.40.0050.00511.71
4.3.30.0070.00211.71
4.3.20.0060.00311.71
4.3.10.0120.00011.71
4.3.00.0070.00011.71

preferences:
130.21 ms | 403 KiB | 5 Q