3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A{ function __construct(){ echo "construct A"; } } class B{ function __construct(){ A::__construct(); echo "construct B"; } }

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.0140.00716.50
8.3.50.0120.00922.11
8.3.40.0140.00018.71
8.3.30.0090.00618.45
8.3.20.0060.00320.22
8.3.10.0000.00723.71
8.3.00.0050.00319.13
8.2.180.0060.00918.04
8.2.170.0100.00322.96
8.2.160.0030.01020.35
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0030.00619.23
8.2.120.0040.00426.35
8.2.110.0000.01020.92
8.2.100.0060.00617.66
8.2.90.0040.00417.78
8.2.80.0040.00519.23
8.2.70.0050.00317.50
8.2.60.0070.00017.68
8.2.50.0050.00318.07
8.2.40.0040.00419.28
8.2.30.0000.00720.59
8.2.20.0000.01017.53
8.2.10.0000.00817.94
8.2.00.0000.00817.92
8.1.280.0100.01025.92
8.1.270.0060.00323.93
8.1.260.0000.00728.09
8.1.250.0080.00028.09
8.1.240.0060.00322.46
8.1.230.0060.00620.96
8.1.220.0030.00517.74
8.1.210.0080.00018.77
8.1.200.0100.00017.23
8.1.190.0040.00416.98
8.1.180.0000.00718.10
8.1.170.0030.00618.71
8.1.160.0070.00021.88
8.1.150.0040.00418.75
8.1.140.0080.00019.36
8.1.130.0030.00317.44
8.1.120.0040.00317.34
8.1.110.0080.00317.32
8.1.100.0000.00717.32
8.1.90.0050.00317.23
8.1.80.0030.00517.32
8.1.70.0000.00717.33
8.1.60.0030.00617.43
8.1.50.0060.00317.25
8.1.40.0040.00417.39
8.1.30.0050.00317.39
8.1.20.0060.00317.36
8.1.10.0000.00717.34
8.1.00.0000.00717.29
8.0.300.0000.00719.90
8.0.290.0040.00416.63
8.0.280.0080.00018.19
8.0.270.0070.00017.04
8.0.260.0000.00617.05
8.0.250.0030.00316.86
8.0.240.0080.00016.73
8.0.230.0000.00816.73
8.0.220.0070.00016.61
8.0.210.0000.00716.64
8.0.200.0060.00016.84
8.0.190.0080.00016.73
8.0.180.0040.00416.86
8.0.170.0060.00316.80
8.0.160.0000.00716.85
8.0.150.0070.00016.66
8.0.140.0050.00316.67
8.0.130.0000.00613.14
8.0.120.0050.00316.75
8.0.110.0070.00016.65
8.0.100.0040.00416.65
8.0.90.0030.00316.72
8.0.80.0060.01216.64
8.0.70.0050.00216.56
8.0.60.0040.00416.58
8.0.50.0040.00416.55
8.0.30.0130.00516.88
8.0.20.0100.01017.40
8.0.10.0040.00416.72
8.0.00.0110.00616.61
7.4.330.0020.00216.77
7.4.320.0070.00016.38
7.4.300.0060.00016.37
7.4.290.0000.00816.39
7.4.280.0050.00316.26
7.4.270.0030.00316.36
7.4.260.0000.00716.29
7.4.250.0000.00716.49
7.4.240.0020.00516.37
7.4.230.0040.00416.49
7.4.220.0130.00716.39
7.4.210.0120.00916.39
7.4.200.0000.00716.48
7.4.160.0120.00916.43
7.4.150.0140.00617.40
7.4.140.0040.01617.86
7.4.130.0080.00816.46
7.4.120.0080.00816.37
7.4.110.0070.01016.39
7.4.100.0150.00916.25
7.4.90.0110.00616.39
7.4.80.0130.01019.39
7.4.70.0130.00316.23
7.4.60.0090.00716.48
7.4.50.0030.01216.18
7.4.40.0100.01016.07
7.4.30.0140.00916.27
7.4.10.0160.00314.89
7.4.00.0080.00714.83
7.3.330.0040.00213.00
7.3.320.0050.00013.18
7.3.310.0040.00416.06
7.3.300.0000.00716.04
7.3.290.0100.00516.13
7.3.280.0140.01416.15
7.3.270.0060.01217.40
7.3.260.0100.00716.17
7.3.240.0110.00916.31
7.3.230.0090.00916.39
7.3.210.0090.00616.06
7.3.200.0040.01416.16
7.3.190.0080.00816.15
7.3.180.0070.00716.48
7.3.170.0070.01716.31
7.3.160.0120.00916.42
7.3.130.0060.01014.40
7.3.120.0060.01214.64
7.3.110.0030.01414.56
7.3.100.0000.01014.68
7.3.90.0030.00914.61
7.3.80.0040.01114.79
7.3.70.0000.00814.79
7.3.60.0030.01014.66
7.3.50.0030.00614.34
7.3.40.0060.00614.63
7.3.30.0040.00414.67
7.3.20.0030.01016.66
7.3.10.0040.00916.35
7.3.00.0050.00916.55
7.2.330.0120.00816.48
7.2.320.0120.00616.55
7.2.310.0140.00316.48
7.2.300.0130.00416.32
7.2.290.0080.01616.38
7.2.260.0030.01614.86
7.2.250.0110.00714.91
7.2.240.0040.01115.04
7.2.230.0060.00914.73
7.2.220.0060.00314.61
7.2.210.0000.01314.97
7.2.200.0030.01015.03
7.2.190.0030.01014.68
7.2.180.0060.00914.83
7.2.170.0030.01314.72
7.2.160.0110.00614.88
7.2.150.0030.00616.86
7.2.140.0030.01216.65
7.2.130.0090.00616.69
7.2.120.0100.00616.71
7.2.110.0060.00816.57
7.2.100.0030.01216.59
7.2.90.0050.01216.51
7.2.80.0070.00716.63
7.2.70.0050.01016.74
7.2.60.0070.00716.64
7.2.50.0060.00816.69
7.2.40.0050.00816.59
7.2.30.0060.00816.74
7.2.20.0060.00916.65
7.2.10.0050.01116.61
7.2.00.0050.01117.30
7.1.330.0030.01015.59
7.1.320.0060.00615.57
7.1.310.0030.00915.65
7.1.300.0040.01115.71
7.1.290.0050.00515.29
7.1.280.0070.00715.79
7.1.270.0040.01115.35
7.1.260.0040.01115.38
7.1.250.0050.00815.25
7.1.240.0060.00915.58
7.1.230.0070.00915.55
7.1.220.0080.00815.59
7.1.210.0020.01115.59
7.1.200.0030.00715.55
7.1.190.0020.01015.59
7.1.180.0100.00315.58
7.1.170.0120.00315.48
7.1.160.0050.00815.51
7.1.150.0040.01115.63
7.1.140.0050.00715.47
7.1.130.0030.01115.48
7.1.120.0090.00315.38
7.1.110.0060.00615.71
7.1.100.0070.00416.43
7.1.90.0060.00515.52
7.1.80.0070.00315.47
7.1.70.0030.00816.13
7.1.60.0050.01116.74
7.1.50.0070.00915.85
7.1.40.0030.01015.57
7.1.30.0050.01015.60
7.1.20.0060.00815.46
7.1.10.0090.00515.41
7.1.00.0060.02817.83
7.0.330.0060.00815.22
7.0.320.0020.01215.18
7.0.310.0080.00915.01
7.0.300.0050.00815.05
7.0.290.0070.00715.26
7.0.280.0020.00915.14
7.0.270.0040.00915.19
7.0.260.0070.00515.14
7.0.250.0030.01115.26
7.0.240.0060.00515.12
7.0.230.0050.00615.32
7.0.220.0040.01015.28
7.0.210.0020.01315.13
7.0.200.0120.00615.04
7.0.190.0050.00715.14
7.0.180.0030.01015.13
7.0.170.0060.00815.31
7.0.160.0030.01015.01
7.0.150.0080.00515.12
7.0.140.0030.00915.10
7.0.130.0050.00915.20
7.0.120.0030.00915.05
7.0.110.0060.00615.24
7.0.100.0130.00214.93
7.0.90.0090.00515.27
7.0.80.0070.00415.05
7.0.70.0050.00815.40
7.0.60.0070.02116.72
7.0.50.0020.03216.18
7.0.40.0030.02115.70
7.0.30.0140.01715.63
7.0.20.0190.02715.56
7.0.10.0060.03515.61
7.0.00.0090.02915.51
5.6.400.0060.00614.17
5.6.390.0040.00814.11
5.6.380.0030.00814.05
5.6.370.0090.00314.05
5.6.360.0050.01213.88
5.6.350.0030.00613.80
5.6.340.0050.00513.87
5.6.330.0030.01014.02
5.6.320.0070.00514.16
5.6.310.0080.00614.18
5.6.300.0040.00614.15
5.6.290.0100.00314.22
5.6.280.0100.02616.40
5.6.270.0030.01114.07
5.6.260.0050.00714.10
5.6.250.0050.01114.07
5.6.240.0020.00913.96
5.6.230.0090.00014.10
5.6.220.0110.00414.02
5.6.210.0080.01716.30
5.6.200.0100.03015.59
5.6.190.0060.02216.26
5.6.180.0050.03616.24
5.6.170.0120.01816.13
5.6.160.0050.02116.23
5.6.150.0080.03315.42
5.6.140.0030.02715.50
5.6.130.0060.03215.49
5.6.120.0050.01816.41
5.6.110.0060.02716.53
5.6.100.0090.02916.39
5.6.90.0050.02816.41
5.6.80.0030.03316.14
5.6.70.0040.00913.95
5.6.60.0010.01014.07
5.6.50.0080.00814.03
5.6.40.0100.00214.02
5.6.30.0020.00913.98
5.6.20.0040.00714.15
5.6.10.0050.00914.07
5.6.00.0030.01214.23
5.5.380.0050.00712.38
5.5.370.0000.01312.28
5.5.360.0030.00812.49
5.5.350.1450.02115.17
5.5.340.0070.02214.17
5.5.330.0070.03114.97
5.5.320.0030.01914.98
5.5.310.0120.02715.07
5.5.300.0040.02414.08
5.5.290.0060.02914.51
5.5.280.0080.03015.18
5.5.270.0050.03215.28
5.5.260.0040.02815.24
5.5.250.0030.02115.15
5.5.240.0070.01414.78
5.5.230.0070.00712.30
5.5.220.0080.00312.44
5.5.210.0050.00512.38
5.5.200.0040.00612.53
5.5.190.0020.01112.57
5.5.180.0060.00512.38
5.5.170.0020.00912.32
5.5.160.0000.01112.56
5.5.150.0080.00512.37
5.5.140.0050.00712.54
5.5.130.0000.01112.43
5.5.120.0050.00612.39
5.5.110.0040.00712.35
5.5.100.0040.00912.60
5.5.90.0050.00612.24
5.5.80.0020.00612.39
5.5.70.0060.00612.07
5.5.60.0030.00812.44
5.5.50.0060.00312.46
5.5.40.0030.01012.06
5.5.30.0040.00712.36
5.5.20.0050.00712.35
5.5.10.0050.00712.27
5.5.00.0020.00912.41

preferences:
35.52 ms | 401 KiB | 5 Q