3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function __construct(){ echo 'construct A'; } } class B extends A { public function __construct(){ } public function foo($param){ // here we actually want to // do stuff parent::__construct(); } } $instance = new B; $instance->foo('bar');

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.0110.00318.18
8.3.50.0080.01022.11
8.3.40.0140.00018.71
8.3.30.0150.00318.92
8.3.20.0040.00420.16
8.3.10.0050.00323.65
8.3.00.0040.00419.13
8.2.180.0150.00018.16
8.2.170.0070.00722.96
8.2.160.0100.00322.13
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0080.00021.05
8.2.110.0110.00020.47
8.2.100.0070.00417.91
8.2.90.0000.00817.75
8.2.80.0040.00418.78
8.2.70.0080.00017.80
8.2.60.0080.00617.71
8.2.50.0030.00619.31
8.2.40.0030.00621.10
8.2.30.0000.00719.09
8.2.20.0000.00817.57
8.2.10.0050.00318.05
8.2.00.0040.00417.54
8.1.280.0030.01025.92
8.1.270.0120.00318.70
8.1.260.0050.00526.35
8.1.250.0000.00828.09
8.1.240.0030.00623.86
8.1.230.0090.00321.03
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.11
8.1.190.0050.00317.22
8.1.180.0040.00418.89
8.1.170.0080.00018.59
8.1.160.0040.00418.97
8.1.150.0030.00518.82
8.1.140.0000.00817.43
8.1.130.0100.00017.82
8.1.120.0000.00717.38
8.1.110.0040.00417.39
8.1.100.0000.00717.39
8.1.90.0040.00417.42
8.1.80.0070.00017.33
8.1.70.0060.00317.27
8.1.60.0070.00017.47
8.1.50.0000.00917.41
8.1.40.0000.00817.53
8.1.30.0000.00817.67
8.1.20.0000.00817.68
8.1.10.0040.00417.46
8.1.00.0030.00617.50
8.0.300.0060.00318.77
8.0.290.0040.00416.75
8.0.280.0070.00018.45
8.0.270.0060.00317.24
8.0.260.0030.00317.24
8.0.250.0070.00016.79
8.0.240.0030.00316.91
8.0.230.0060.00016.91
8.0.220.0030.00316.72
8.0.210.0000.00716.89
8.0.200.0070.00016.86
8.0.190.0080.00016.95
8.0.180.0070.00016.91
8.0.170.0050.00316.86
8.0.160.0000.00816.73
8.0.150.0000.00716.84
8.0.140.0070.00016.71
8.0.130.0030.00313.30
8.0.120.0040.00416.67
8.0.110.0050.00316.79
8.0.100.0000.00716.68
8.0.90.0000.00716.77
8.0.80.0040.01116.84
8.0.70.0050.00216.86
8.0.60.0040.00416.85
8.0.50.0080.00016.80
8.0.30.0110.01117.07
8.0.20.0120.00617.40
8.0.10.0080.00016.84
8.0.00.0080.01016.90
7.4.330.0030.00315.03
7.4.320.0030.00316.48
7.4.300.0040.00416.55
7.4.290.0070.00016.55
7.4.280.0040.00416.62
7.4.270.0030.00316.58
7.4.260.0000.00716.55
7.4.250.0000.00716.49
7.4.240.0020.00516.58
7.4.230.0040.00416.66
7.4.220.0030.01416.46
7.4.210.0100.00616.70
7.4.200.0040.00416.43
7.4.160.0110.01116.57
7.4.150.0080.01117.40
7.4.140.0080.00917.86
7.4.130.0090.00816.34
7.4.120.0150.00316.46
7.4.110.0110.00716.50
7.4.100.0070.01416.50
7.4.90.0070.01016.25
7.4.80.0070.01319.39
7.4.70.0030.01416.57
7.4.60.0120.00416.55
7.4.50.0040.00416.43
7.4.40.0090.00916.50
7.4.30.0130.00916.37
7.4.00.0100.00715.23
7.3.330.0050.00013.14
7.3.320.0000.00513.07
7.3.310.0000.00716.13
7.3.300.0060.00016.20
7.3.290.0070.00716.21
7.3.280.0110.00616.22
7.3.270.0150.00417.40
7.3.260.0100.00716.24
7.3.250.0140.00416.21
7.3.240.0120.00916.17
7.3.230.0070.01116.47
7.3.210.0060.01216.30
7.3.200.0070.01019.39
7.3.190.0110.00616.33
7.3.180.0160.00016.41
7.3.170.0090.01416.35
7.3.160.0090.00616.45
7.3.120.0100.00715.01
7.3.110.0040.01114.70
7.3.100.0070.01014.75
7.3.90.0000.01314.79
7.3.80.0040.00414.82
7.3.70.0000.00914.57
7.3.60.0070.00414.79
7.3.50.0040.00414.81
7.3.40.0100.00714.73
7.3.30.0060.00314.66
7.3.20.0070.00416.29
7.3.10.0040.01116.62
7.3.00.0100.00316.52
7.2.330.0120.00816.45
7.2.320.0060.01316.47
7.2.310.0090.00916.54
7.2.300.0100.00716.55
7.2.290.0060.01616.78
7.2.240.0100.00715.05
7.2.230.0060.00915.19
7.2.220.0040.00715.00
7.2.210.0040.01114.92
7.2.200.0040.00815.14
7.2.190.0130.00014.71
7.2.180.0040.00815.01
7.2.170.0070.00714.80
7.2.160.0060.01015.07
7.2.150.0080.00816.80
7.2.140.0090.00616.73
7.2.130.0060.00916.86
7.2.120.0070.00716.61
7.2.110.0070.00616.72
7.2.100.0030.01216.60
7.2.90.0110.00516.85
7.2.80.0080.00616.60
7.2.70.0030.01016.75
7.2.60.0070.00916.84
7.2.50.0080.00716.88
7.2.40.0050.00916.86
7.2.30.0000.01616.98
7.2.20.0060.01116.90
7.2.10.0050.01016.75
7.2.00.0090.00717.81
7.1.330.0040.00815.91
7.1.320.0030.01015.75
7.1.310.0070.00315.86
7.1.300.0060.00615.30
7.1.290.0070.00715.77
7.1.280.0080.00615.43
7.1.270.0060.00915.32
7.1.260.0070.00715.35
7.1.250.0080.00815.43
7.1.230.0030.00915.62
7.1.220.0040.01115.64
7.1.210.0000.01415.67
7.1.200.0050.00915.40
7.1.190.0000.01415.63
7.1.180.0040.00815.56
7.1.170.0000.01415.41
7.1.160.0070.00315.75
7.1.150.0000.01315.62
7.1.140.0030.00715.52
7.1.130.0060.00615.59
7.1.120.0040.00415.58
7.1.110.0070.01015.75
7.1.100.0050.01016.73
7.1.90.0000.01115.55
7.1.80.0040.00815.65
7.1.70.0100.00416.18
7.1.60.0080.01017.60
7.1.50.0090.01016.23
7.1.40.0000.01615.93
7.1.30.0120.00615.47
7.1.20.0030.01015.69
7.1.10.0070.00715.79
7.1.00.0110.03318.99
7.0.310.0030.01015.33
7.0.300.0100.00015.16
7.0.290.0040.00415.48
7.0.280.0000.01315.29
7.0.270.0070.00315.13
7.0.260.0080.00015.14
7.0.250.0070.00315.07
7.0.240.0120.00415.33
7.0.230.0040.00715.10
7.0.220.0080.00415.35
7.0.210.0000.01015.36
7.0.200.0080.00515.88
7.0.190.0080.00815.45
7.0.180.0120.00315.41
7.0.170.0030.01315.20
7.0.160.0030.01115.35
7.0.150.0110.00415.27
7.0.140.0020.02218.69
7.0.130.0070.00015.17
7.0.120.0040.00815.20
7.0.110.0040.00415.22
7.0.100.0070.00415.34
7.0.90.0030.01015.22
7.0.80.0030.01015.35
7.0.70.0030.00915.07
7.0.60.0130.02817.63
7.0.50.0050.03016.63
7.0.40.0070.03816.87
7.0.30.0130.03016.77
7.0.20.0100.02516.81
7.0.10.0070.04716.81
7.0.00.0080.04116.87
5.6.380.0090.00314.55
5.6.370.0060.00914.35
5.6.360.0000.01214.30
5.6.350.0100.00314.13
5.6.340.0070.00414.40
5.6.330.0000.01114.29
5.6.320.0030.01214.24
5.6.310.0100.00714.42
5.6.300.0060.00614.14
5.6.290.0040.00413.96
5.6.280.0050.04117.86
5.6.270.0080.00814.10
5.6.260.0070.00414.37
5.6.250.0090.00614.38
5.6.240.0070.00014.23
5.6.230.0030.00914.50
5.6.220.0100.00014.18
5.6.210.0120.03917.52
5.6.200.0030.04816.26
5.6.190.0080.03517.53
5.6.180.0130.04517.39
5.6.170.0200.04217.55
5.6.160.0090.04217.51
5.6.150.0080.04416.21
5.6.140.0080.04516.20
5.6.130.0060.03816.27
5.6.120.0070.02317.54
5.6.110.0060.05017.61
5.6.100.0080.02017.63
5.6.90.0070.02717.51
5.6.80.0100.02017.26
5.6.70.0110.00314.40
5.6.60.0100.01014.11
5.6.50.0070.01114.27
5.6.40.0150.00414.13
5.6.30.0080.00414.11
5.6.20.0130.00514.32
5.6.10.0110.00614.07
5.6.00.0080.00814.23
5.5.380.0060.00612.79
5.5.370.0060.00312.79
5.5.360.0030.00612.79
5.5.350.0220.03316.59
5.5.340.0060.02715.38
5.5.330.0070.02116.61
5.5.320.0270.03516.53
5.5.310.0210.03116.57
5.5.300.0050.02515.39
5.5.290.0060.03815.37
5.5.280.0080.04116.78
5.5.270.0130.03716.88
5.5.260.0080.04516.88
5.5.250.0100.02516.79
5.5.240.0080.03816.51
5.5.230.0080.00312.79
5.5.220.0090.00412.79
5.5.210.0090.00012.79
5.5.200.0100.00312.79
5.5.190.0120.00012.79
5.5.180.0030.00912.79
5.5.170.0150.00414.34
5.5.160.0070.00412.79
5.5.150.0100.00312.79
5.5.140.0120.00012.79
5.5.130.0040.00412.79
5.5.120.0090.00312.79
5.5.110.0050.01012.79
5.5.100.0070.00412.79
5.5.90.0100.00712.79
5.5.80.0070.00212.79
5.5.70.0060.00612.79
5.5.60.0080.00512.79
5.5.50.0160.00012.79
5.5.40.0000.01312.79
5.5.30.0100.00012.79
5.5.20.0070.00712.79
5.5.10.0070.00712.79
5.5.00.0080.00612.79
5.4.450.0110.03516.10
5.4.440.0150.03816.13
5.4.430.0150.04016.10
5.4.420.0180.02716.11
5.4.410.0190.03816.07
5.4.400.0130.02916.01
5.4.390.0120.04215.87
5.4.380.0180.02315.97
5.4.370.0180.03616.01
5.4.360.0150.02015.96
5.4.350.0180.03215.96
5.4.340.0160.02516.04
5.4.330.0090.00312.79
5.4.320.0160.03015.89
5.4.310.0180.03716.02
5.4.300.0180.02716.05
5.4.290.0130.02315.82
5.4.280.0120.03015.99
5.4.270.0190.01616.01
5.4.260.0130.04015.90
5.4.250.0160.02215.87
5.4.240.0180.02715.97
5.4.230.0170.02415.82
5.4.220.0220.03415.88
5.4.210.0180.02816.00
5.4.200.0180.03215.92
5.4.190.0170.03815.92
5.4.180.0140.03615.93
5.4.170.0210.02215.96
5.4.160.0170.02515.95
5.4.150.0070.03615.93
5.4.140.0170.02714.63
5.4.130.0110.02414.64
5.4.120.0140.02714.75
5.4.110.0130.02414.55
5.4.100.0150.02514.60
5.4.90.0190.02914.70
5.4.80.0150.02414.68
5.4.70.0150.03514.60
5.4.60.0150.02014.55
5.4.50.0150.02314.51
5.4.40.0170.03614.51
5.4.30.0120.04014.64
5.4.20.0190.02514.64
5.4.10.0130.03414.65
5.4.00.0170.03614.37
5.3.290.0140.03013.77
5.3.280.0100.03713.69
5.3.270.0220.03213.70
5.3.260.0120.02713.71
5.3.250.0100.03913.65
5.3.240.0180.03413.69
5.3.230.0140.03613.80
5.3.220.0140.02813.76
5.3.210.0170.02713.69
5.3.200.0170.02013.69
5.3.190.0120.02213.68
5.3.180.0150.03813.76
5.3.170.0130.03813.66
5.3.160.0170.01713.63
5.3.150.0120.01913.75
5.3.140.0140.01813.63
5.3.130.0150.02313.63
5.3.120.0170.02813.62
5.3.110.0190.02313.63
5.3.100.0160.03713.42
5.3.90.0190.03513.39
5.3.80.0170.04013.44
5.3.70.0170.03113.37
5.3.60.0140.03013.48
5.3.50.0210.03013.33
5.3.40.0160.02913.36
5.3.30.0190.03013.34
5.3.20.0200.02013.23
5.3.10.0140.02113.24
5.3.00.0180.02313.21
5.2.170.0100.03312.37
5.2.160.0120.02812.37
5.2.150.0120.03312.37
5.2.140.0140.02512.37
5.2.130.0110.03412.37
5.2.120.0110.02512.37
5.2.110.0110.02812.37
5.2.100.0140.01812.37
5.2.90.0140.02012.37
5.2.80.0120.02512.37
5.2.70.0100.02812.37
5.2.60.0110.02212.37
5.2.50.0150.02812.37
5.2.40.0130.02812.37
5.2.30.0130.03012.37
5.2.20.0130.03112.37
5.2.10.0150.01712.37
5.2.00.0130.02512.37
5.1.60.0110.02912.37
5.1.50.0140.02112.37
5.1.40.0090.03012.37
5.1.30.0140.02012.37
5.1.20.0120.02812.37
5.1.10.0120.02712.37
5.1.00.0090.02012.37
5.0.50.0050.02012.37
5.0.40.0070.01312.37
5.0.30.0070.02812.37
5.0.20.0070.01812.37
5.0.10.0030.02712.37
5.0.00.0090.03012.37
4.4.90.0060.01112.37
4.4.80.0030.02212.37
4.4.70.0030.02112.37
4.4.60.0080.01712.37
4.4.50.0050.01712.37
4.4.40.0070.02212.37
4.4.30.0050.01212.37
4.4.20.0090.01412.37
4.4.10.0060.01612.37
4.4.00.0050.02212.37
4.3.110.0060.01212.37
4.3.100.0030.02212.37
4.3.90.0080.01312.37
4.3.80.0030.02712.37
4.3.70.0050.01812.37
4.3.60.0050.01812.37
4.3.50.0050.02012.37
4.3.40.0050.02112.37
4.3.30.0040.01212.37
4.3.20.0030.01912.37
4.3.10.0020.01212.37
4.3.00.0020.01912.37

preferences:
51.05 ms | 401 KiB | 5 Q