3v4l.org

run code in 300+ PHP versions simultaneously
<?php class WorksIn4And8 { var $int; function __construct($int) { error_log('__construct()'); $this->int = $int; } function WorksIn4And8($int) { error_log('WorksIn4And8()'); $this->__construct($int); } function getInt() { return $this->int; } } $obj = new WorksIn4And8(48); var_dump($obj->getInt());

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.10.0080.00020.79
8.3.140.0110.00717.45
8.3.130.0000.00818.61
8.3.120.0090.00921.07
8.3.110.0100.00020.94
8.3.100.0100.00324.06
8.3.90.0000.00826.77
8.3.80.0030.00616.75
8.3.70.0090.01216.88
8.3.60.0110.00418.45
8.3.50.0120.00823.63
8.3.40.0150.00022.16
8.3.30.0100.01018.89
8.3.20.0000.00724.18
8.3.10.0030.00324.66
8.3.00.0040.00426.16
8.2.250.0090.00016.71
8.2.240.0000.01117.14
8.2.230.0000.00822.58
8.2.220.0040.00437.54
8.2.210.0070.01026.77
8.2.200.0030.00616.63
8.2.190.0100.01016.75
8.2.180.0180.00325.92
8.2.170.0080.01218.90
8.2.160.0110.00422.96
8.2.150.0000.00925.66
8.2.140.0050.00324.66
8.2.130.0000.00826.16
8.2.120.0000.00820.63
8.2.110.0030.00620.86
8.2.100.0120.00017.72
8.2.90.0030.00617.91
8.2.80.0000.00917.97
8.2.70.0040.00417.68
8.2.60.0050.00218.03
8.2.50.0000.00818.10
8.2.40.0040.00419.19
8.2.30.0020.00619.20
8.2.20.0040.00418.02
8.2.10.0040.00419.20
8.2.00.0000.00819.06
8.1.300.0000.01517.90
8.1.290.0040.00430.84
8.1.280.0090.00625.92
8.1.270.0000.00823.99
8.1.260.0060.00326.35
8.1.250.0080.00028.09
8.1.240.0090.00022.19
8.1.230.0070.00422.69
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0000.00917.35
8.1.190.0050.00317.10
8.1.180.0030.00518.10
8.1.170.0080.00018.63
8.1.160.0000.00719.02
8.1.150.0040.00418.82
8.1.140.0070.00018.82
8.1.130.0060.00319.16
8.1.120.0080.00017.29
8.1.110.0060.00317.41
8.1.100.0000.00717.35
8.1.90.0040.00417.41
8.1.80.0040.00417.28
8.1.70.0000.00717.38
8.1.60.0030.00517.46
8.1.50.0000.00817.51
8.1.40.0000.00817.46
8.1.30.0100.00017.71
8.1.20.0000.00917.55
8.1.10.0040.00917.54
8.1.00.0040.00417.46
8.0.300.0040.00420.16
8.0.290.0040.00416.75
8.0.280.0040.00418.32
8.0.270.0040.00416.88
8.0.260.0030.00316.79
8.0.250.0030.00316.99
8.0.240.0000.00716.88
8.0.230.0070.00016.96
8.0.220.0070.00016.81
8.0.210.0000.00716.89
8.0.200.0000.00816.85
8.0.190.0040.00416.84
8.0.180.0070.00016.89
8.0.170.0070.00316.93
8.0.160.0000.00716.78
8.0.150.0060.00316.78
8.0.140.0000.00716.87
8.0.130.0050.00013.34
8.0.120.0040.00416.77
8.0.110.0000.00816.90
8.0.100.0050.00216.96
8.0.90.0000.00716.95
8.0.80.0070.00716.90
8.0.70.0000.00817.01
8.0.60.0050.00216.77
8.0.50.0050.00316.85
8.0.30.0160.00317.00
8.0.20.0130.00517.24
8.0.10.0050.00316.98
8.0.00.0030.01516.57
7.4.330.0050.00015.55
7.4.320.0030.00316.39
7.4.300.0030.00316.44
7.4.290.0040.00416.48
7.4.280.0030.00516.55
7.4.270.0070.00016.44
7.4.260.0000.00513.31
7.4.250.0000.00816.56
7.4.240.0030.00316.60
7.4.230.0030.00316.63
7.4.220.0030.00316.71
7.4.210.0080.00816.58
7.4.200.0050.00216.44
7.4.130.0060.01116.42
7.4.120.0080.00816.38
7.4.110.0090.00916.32
7.4.100.0090.00916.17
7.4.90.0130.00316.29
7.4.80.0090.00616.43
7.4.70.0100.00616.45
7.4.60.0040.01216.13
7.4.50.0080.00816.39
7.4.40.0140.00316.45
7.4.30.0060.01016.08
7.4.20.0060.01016.15
7.4.10.0040.01816.35
7.4.00.0110.00616.36
7.3.330.0000.00716.34
7.3.320.0060.00013.31
7.3.310.0000.00816.14
7.3.300.0000.00716.19
7.3.290.0080.00916.27
7.3.260.0130.00416.33
7.3.230.0100.00716.20
7.3.220.0030.01316.25
7.3.210.0070.01016.38
7.3.200.0110.00416.24
7.3.190.0050.01016.51
7.3.180.0060.00916.35
7.3.170.0040.01216.18
7.3.160.0040.01216.14
7.3.150.0060.01016.43
7.3.140.0100.00616.34
7.3.130.0100.00616.25
7.3.120.0140.00416.28
7.3.110.0060.00916.41
7.3.100.0000.01716.45
7.3.90.0130.00316.28
7.3.80.0130.00316.21
7.3.70.0060.00916.18
7.3.60.0120.00316.30
7.3.50.0090.01316.25
7.3.40.0070.01016.10
7.3.30.0120.00416.34
7.3.20.0070.01416.16
7.3.10.0160.00716.16
7.3.00.0590.00316.32
7.2.340.0070.01016.58
7.2.330.0100.00716.43
7.2.320.0100.00616.49
7.2.310.0060.01016.21
7.2.300.0100.00716.45
7.2.290.0140.00316.74
7.2.280.0060.01216.64
7.2.270.0060.01016.63
7.2.260.0060.01616.69
7.2.250.0160.00016.46
7.2.240.0030.01316.48
7.2.230.0100.00716.23
7.2.220.0130.00316.31
7.2.210.0100.00716.42
7.2.200.0090.00616.27
7.2.190.0130.00316.39
7.2.180.0060.01016.39
7.2.170.0060.01016.47
7.2.160.0070.01016.62
7.2.150.0210.00316.52
7.2.140.0070.01016.46
7.2.130.0100.01016.46
7.2.120.0140.00316.34
7.2.110.0000.01716.38
7.2.100.0060.01216.74
7.2.90.0060.01316.62
7.2.80.0060.01216.49
7.2.70.0220.00316.47
7.2.60.0110.00716.56
7.2.50.0170.00716.51
7.2.40.0090.00916.57
7.2.30.0140.00816.65
7.2.20.0090.00916.36
7.2.10.0070.01116.27
7.2.00.0090.00916.77
7.1.330.0240.00515.53
7.1.320.0210.00815.50
7.1.310.0240.00715.42
7.1.300.0310.00615.47
7.1.290.0240.00315.40
7.1.280.0220.00615.44
7.1.270.0260.00815.53
7.1.260.0210.00515.60
7.1.250.0240.00315.33
7.1.240.0210.00615.43
7.1.230.0290.00015.33
7.1.220.0240.00715.43
7.1.210.0140.01415.43
7.1.200.0230.01115.47
7.1.190.0230.00715.37
7.1.180.0270.00315.36
7.1.170.0250.00615.23
7.1.160.0210.00815.47
7.1.150.0200.01115.40
7.1.140.0220.00715.49
7.1.130.0220.00815.52
7.1.120.0190.01015.53
7.1.110.0180.00915.47
7.1.100.0220.00715.60
7.1.90.0200.00815.40
7.1.80.0220.00615.46
7.1.70.0150.01215.36
7.1.60.0270.00015.22
7.1.50.0270.00015.32
7.1.40.0160.01115.45
7.1.30.0120.01515.42
7.1.20.0220.00615.54
7.1.10.0160.01115.60
7.1.00.0200.01415.50
7.0.330.0180.00915.20
7.0.320.0200.00715.20
7.0.310.0140.01415.19
7.0.300.0530.00715.08
7.0.290.0230.00415.10
7.0.280.0230.00415.19
7.0.270.0300.00015.39
7.0.260.0240.00514.84
7.0.250.0250.00615.07
7.0.240.0220.00315.16
7.0.230.0250.00315.31
7.0.220.0330.00615.13
7.0.210.0180.00915.12
7.0.200.0270.00015.09
7.0.190.0250.00814.97
7.0.180.0150.00914.98
7.0.170.0130.01015.06
7.0.160.0160.01015.36
7.0.150.0240.00315.16
7.0.140.0180.00915.10
7.0.130.0160.01015.22
7.0.120.0140.01515.24
7.0.110.0210.00715.27
7.0.100.0220.00815.07
7.0.90.0240.00915.06
7.0.80.0250.02215.34
7.0.70.0240.00715.21
7.0.60.0240.01315.03
7.0.50.0300.00915.04
7.0.40.0300.00015.02
7.0.30.0240.00615.16
7.0.20.0230.00715.23
7.0.10.0220.00715.10
7.0.00.0140.01015.14
5.6.400.0200.01016.05
5.6.390.0200.00815.93
5.6.380.0170.01216.09
5.6.370.0260.00315.98
5.6.360.0260.00415.95
5.6.350.0260.00415.77
5.6.340.0190.01115.82
5.6.330.0210.00716.00
5.6.320.0180.01516.05
5.6.310.0070.01815.84
5.6.300.0280.00416.07
5.6.290.0250.00615.82
5.6.280.0240.00815.85
5.6.270.0310.00316.18
5.6.260.0170.01315.96
5.6.250.0240.00715.99
5.6.240.0230.01215.88
5.6.230.0210.01516.00
5.6.220.0300.01515.86
5.6.210.0280.00915.96
5.6.200.0210.01715.74
5.6.190.0240.01215.88
5.6.180.0170.01415.98
5.6.170.0210.01215.84
5.6.160.0250.00915.82
5.6.150.0140.01415.76
5.6.140.0230.00915.92
5.6.130.0110.01915.62
5.6.120.0220.00515.48
5.6.110.0160.01315.68
5.6.100.0090.01915.70
5.6.90.0210.01115.66
5.6.80.0180.01115.44
5.6.70.0240.00615.70
5.6.60.0180.00915.43
5.6.50.0190.01015.59
5.6.40.0130.01315.94
5.6.30.0180.00915.70
5.6.20.0240.00416.00
5.6.10.0180.01815.70
5.6.00.0220.00615.66
5.5.380.0310.00415.86
5.5.370.0250.01315.67
5.5.360.0330.00615.94
5.5.350.0310.00715.79
5.5.340.0220.01115.79
5.5.330.0160.01816.06
5.5.320.0200.01415.89
5.5.310.0220.01115.82
5.5.300.0210.00815.61
5.5.290.0180.00915.68
5.5.280.0120.01515.75
5.5.270.0210.00715.75
5.5.260.0270.00015.59
5.5.250.0180.01515.56
5.5.240.0150.01215.68
5.5.230.0170.01415.56
5.5.220.0200.01115.51
5.5.210.0200.00615.53
5.5.200.0300.00715.83
5.5.190.0200.01015.71
5.5.180.0240.00915.77
5.5.170.0220.00615.79
5.5.160.0180.01115.85
5.5.150.0160.01015.85
5.5.140.0230.01015.72
5.5.130.0150.01215.89
5.5.120.0130.01615.84
5.5.110.0180.01115.73
5.5.100.0170.01315.86
5.5.90.0170.01115.80
5.5.80.0120.01715.78
5.5.70.0180.01115.53
5.5.60.0230.00415.84
5.5.50.0090.01815.85
5.5.40.0180.01215.93
5.5.30.0170.01415.53
5.5.20.0170.01115.88
5.5.10.0130.02115.93
5.5.00.0210.00815.70
5.4.450.0110.00712.64
5.4.440.0000.01712.87
5.4.430.0050.01012.58
5.4.420.0030.01312.53
5.4.410.0130.00912.76
5.4.400.0190.00612.51
5.4.390.0120.00612.52
5.4.380.0190.00712.50
5.4.370.0140.00612.71
5.4.360.0200.01012.35
5.4.350.0160.00512.67
5.4.340.0190.01012.44
5.4.330.0150.00612.58
5.4.320.0170.00612.42
5.4.310.0140.00712.77
5.4.300.0160.00412.37
5.4.290.0180.00312.53
5.4.280.0150.00812.57
5.4.270.0220.00612.69
5.4.260.0200.00312.60
5.4.250.0190.00312.48
5.4.240.0170.00612.59
5.4.230.0170.00512.75
5.4.220.0180.00512.63
5.4.210.0130.01012.54
5.4.200.0150.00712.45
5.4.190.0150.00912.41
5.4.180.0110.01112.52
5.4.170.0150.01012.54
5.4.160.0210.00612.80
5.4.150.0090.01312.70
5.4.140.0120.00912.59
5.4.130.0170.00312.61
5.4.120.0110.00912.57
5.4.110.0200.00012.57
5.4.100.0080.01212.61
5.4.90.0180.00412.41
5.4.80.0120.00912.83
5.4.70.0150.00512.67
5.4.60.0150.00512.73
5.4.50.0120.00912.67
5.4.40.0140.00912.57
5.4.30.0130.00812.57
5.4.20.0110.01112.60
5.4.10.0170.00312.79
5.4.00.0100.01012.36
5.3.290.0150.00813.31
5.3.280.0120.01013.09
5.3.270.0170.00713.18
5.3.260.0110.01413.04
5.3.250.0150.00913.15
5.3.240.0170.00613.01
5.3.230.0140.00712.91
5.3.220.0180.00412.90
5.3.210.0140.00812.96
5.3.200.0090.01312.85
5.3.190.0170.00413.03
5.3.180.0130.00813.15
5.3.170.0180.00313.06
5.3.160.0090.01213.13
5.3.150.0170.00613.02
5.3.140.0200.00313.07
5.3.130.0170.00712.90
5.3.120.0140.01012.99
5.3.110.0130.00712.93
5.3.100.0070.01413.07
5.3.90.0070.01413.17
5.3.80.0190.00313.02
5.3.70.0170.00012.89
5.3.60.0120.01513.03
5.3.50.0140.01413.13
5.3.40.0100.01013.13
5.3.30.0150.00413.15
5.3.20.0100.01413.14
5.3.10.0130.00712.99
5.3.00.0140.00512.84
5.2.170.0090.01012.27
5.2.160.0130.00412.27
5.2.150.0140.00512.27
5.2.140.0040.01812.27
5.2.130.0140.00612.27
5.2.120.0130.00712.27
5.2.110.0090.01212.27
5.2.100.0160.00312.27
5.2.90.0120.00612.27
5.2.80.0110.00812.27
5.2.70.0130.00612.27
5.2.60.0160.00612.27
5.2.50.0090.01512.27
5.2.40.0170.00712.27
5.2.30.0150.00412.27
5.2.20.0200.00412.27
5.2.10.0110.00912.27
5.2.00.0160.00612.27
5.1.60.0150.00612.27
5.1.50.0130.00612.27
5.1.40.0090.00612.27
5.1.30.0070.01412.27
5.1.20.0080.01212.27
5.1.10.0090.00912.27
5.1.00.0080.00812.27
5.0.50.0100.00612.27
5.0.40.0130.00312.27
5.0.30.0150.00312.27
5.0.20.0110.00512.27
5.0.10.0040.01112.27
5.0.00.0140.00012.27
4.4.90.0110.00012.27
4.4.80.0100.00012.27
4.4.70.0080.00312.27
4.4.60.0070.00412.27
4.4.50.0070.00512.27
4.4.40.0100.00012.27
4.4.30.0110.00012.27
4.4.20.0060.00612.27
4.4.10.0090.00312.27
4.4.00.0040.00412.27
4.3.110.0110.00012.27
4.3.100.0050.00612.27
4.3.90.0100.00012.27
4.3.80.0100.00012.27
4.3.70.0090.00312.27
4.3.60.0080.00412.27
4.3.50.0060.00312.27
4.3.40.0090.00312.27
4.3.30.0040.00412.27
4.3.20.0030.00612.27
4.3.10.0040.00412.27
4.3.00.0090.00012.27

preferences:
15.77 ms | 403 KiB | 5 Q