3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { function __construct() { echo __CLASS__ , "\n"; } } class B extends A { function __construct() { parent::__construct(); echo __CLASS__ , "\n"; parent::__construct(); return "PHP\n"; } } $b = new B; echo $b->__construct();

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.0070.00524.32
8.4.110.0030.00522.43
8.4.100.0110.01117.81
8.4.90.0040.00420.39
8.4.80.0100.00918.75
8.4.70.0110.00920.55
8.4.60.0120.00920.50
8.4.50.0090.00620.68
8.4.40.0040.00419.60
8.4.30.0170.00317.27
8.4.20.0060.01318.55
8.4.10.0030.00719.51
8.3.250.0100.00918.80
8.3.240.0050.00517.10
8.3.230.0130.00816.48
8.3.220.0110.00718.67
8.3.210.0040.00516.36
8.3.200.0060.00316.76
8.3.190.0120.00617.22
8.3.180.0080.00718.88
8.3.170.0070.01116.93
8.3.160.0100.01016.50
8.3.150.0100.01016.37
8.3.140.0050.00316.64
8.3.130.0090.00016.71
8.3.120.0030.00718.91
8.3.110.0090.00020.94
8.3.100.0000.00824.06
8.3.90.0090.00026.77
8.3.80.0000.00916.50
8.3.70.0110.00416.75
8.3.60.0070.01418.31
8.3.50.0130.00621.99
8.3.40.0060.00918.58
8.3.30.0100.00618.56
8.3.20.0090.00020.77
8.3.10.0080.00021.77
8.3.00.0040.00417.38
8.2.290.0080.00316.93
8.2.280.0050.00518.53
8.2.270.0120.00618.13
8.2.260.0100.00017.16
8.2.250.0080.00016.71
8.2.240.0070.00317.21
8.2.230.0060.00322.58
8.2.220.0040.01137.54
8.2.210.0080.00026.77
8.2.200.0070.00416.75
8.2.190.0070.00716.63
8.2.180.0100.01018.16
8.2.170.0000.01422.96
8.2.160.0070.00720.52
8.2.150.0040.00424.18
8.2.140.0000.00924.66
8.2.130.0080.00026.16
8.2.120.0040.00421.18
8.2.110.0030.00619.34
8.2.100.0000.01217.89
8.2.90.0040.00417.75
8.2.80.0030.00618.72
8.2.70.0040.00417.68
8.2.60.0000.00818.04
8.2.50.0030.00518.10
8.2.40.0080.00020.59
8.2.30.0050.00319.26
8.2.20.0070.00017.97
8.2.10.0000.00718.00
8.2.00.0080.00017.57
8.1.330.0120.00821.98
8.1.320.0090.01116.04
8.1.310.0080.00016.83
8.1.300.0040.00416.75
8.1.290.0090.00318.88
8.1.280.0070.00725.92
8.1.270.0030.00623.90
8.1.260.0000.00726.35
8.1.250.0050.00328.09
8.1.240.0000.00919.38
8.1.230.0110.00018.87
8.1.220.0000.00817.78
8.1.210.0000.00818.77
8.1.200.0050.00317.22
8.1.190.0000.00817.00
8.1.180.0030.00618.10
8.1.170.0080.00020.82
8.1.160.0000.00718.69
8.1.150.0040.00420.11
8.1.140.0040.00419.38
8.1.130.0030.00518.91
8.1.120.0030.00317.39
8.1.110.0050.00317.36
8.1.100.0000.00717.39
8.1.90.0050.00217.27
8.1.80.0030.00517.41
8.1.70.0000.00717.43
8.1.60.0000.00817.51
8.1.50.0050.00317.48
8.1.40.0000.00717.41
8.1.30.0080.00017.63
8.1.20.0050.00317.53
8.1.10.0040.00417.58
8.1.00.0100.00017.35
8.0.300.0080.00018.77
8.0.290.0080.00016.75
8.0.280.0030.00318.48
8.0.270.0000.00717.17
8.0.260.0000.00617.18
8.0.250.0040.00416.99
8.0.240.0030.00317.03
8.0.230.0000.00716.91
8.0.220.0000.00716.71
8.0.210.0000.00716.79
8.0.200.0030.00316.75
8.0.190.0050.00316.82
8.0.180.0050.00216.73
8.0.170.0050.00216.77
8.0.160.0030.00316.83
8.0.150.0000.00716.82
8.0.140.0000.00816.71
8.0.130.0060.00013.27
8.0.120.0030.00516.72
8.0.110.0040.00416.84
8.0.100.0000.00816.90
8.0.90.0070.00016.74
8.0.80.0070.01116.81
8.0.70.0060.00316.67
8.0.60.0000.00716.86
8.0.50.0000.00816.67
8.0.30.0120.00517.27
8.0.20.0110.00817.40
8.0.10.0040.00416.77
8.0.00.0070.01016.71
7.4.330.0050.00015.55
7.4.320.0030.00316.43
7.4.300.0030.00316.57
7.4.290.0060.00316.50
7.4.280.0000.00716.63
7.4.270.0070.00016.64
7.4.260.0000.00916.49
7.4.250.0000.00816.51
7.4.240.0000.00716.36
7.4.230.0000.00716.61
7.4.220.0090.00916.50
7.4.210.0000.01416.55
7.4.200.0040.00416.38
7.4.160.0080.00816.63
7.4.150.0130.01017.40
7.4.140.0110.00717.86
7.4.130.0120.00616.57
7.4.120.0090.00816.51
7.4.110.0100.00716.53
7.4.100.0150.00616.42
7.4.90.0060.01416.39
7.4.80.0140.01019.39
7.4.70.0030.01316.48
7.4.60.0060.01016.58
7.4.50.0030.00716.38
7.4.40.0140.00416.69
7.4.30.0080.00816.38
7.4.00.0100.00814.97
7.3.330.0000.00713.21
7.3.320.0020.00213.25
7.3.310.0090.00016.24
7.3.300.0000.00716.12
7.3.290.0050.00916.20
7.3.280.0090.00716.19
7.3.270.0060.01017.40
7.3.260.0090.00916.44
7.3.250.0100.00616.29
7.3.240.0160.00516.35
7.3.230.0120.00416.45
7.3.210.0160.00016.16
7.3.200.0030.01516.13
7.3.190.0030.01416.38
7.3.180.0060.00916.32
7.3.170.0040.01816.30
7.3.160.0030.01616.39
7.3.120.0100.00814.69
7.3.110.0060.00814.77
7.3.100.0040.01114.74
7.3.90.0030.00614.84
7.3.80.0060.00814.65
7.3.70.0120.00214.73
7.3.60.0080.00714.54
7.3.50.0060.00614.79
7.3.40.0030.01014.50
7.3.30.0070.00714.53
7.3.20.0030.01216.37
7.3.10.0090.00516.60
7.3.00.0070.00516.44
7.2.330.0030.01316.70
7.2.320.0060.00916.43
7.2.310.0110.00616.38
7.2.300.0070.01016.67
7.2.290.0100.00716.62
7.2.250.0110.00714.91
7.2.240.0130.00314.91
7.2.230.0080.01114.97
7.2.220.0070.00715.13
7.2.210.0090.00614.99
7.2.200.0050.01114.93
7.2.190.0060.01014.88
7.2.180.0050.00814.97
7.2.170.0030.01314.84
7.2.160.0060.00915.12
7.2.150.0030.01416.72
7.2.140.0060.00617.00
7.2.130.0000.01816.98
7.2.120.0060.00916.91
7.2.110.0040.01216.81
7.2.100.0100.00616.71
7.2.90.0040.01216.91
7.2.80.0040.01116.85
7.2.70.0000.01516.79
7.2.60.0090.00716.92
7.2.50.0030.01017.07
7.2.40.0080.00316.73
7.2.30.0040.01417.09
7.2.20.0060.00916.80
7.2.10.0140.00016.72
7.2.00.0080.00818.16
7.1.330.0070.00715.57
7.1.320.0070.00615.58
7.1.310.0030.00915.62
7.1.300.0050.01115.51
7.1.290.0050.01015.57
7.1.280.0060.00715.68
7.1.270.0060.00915.64
7.1.260.0030.00815.53
7.1.250.0030.01215.78
7.1.200.0030.00915.34
7.1.100.0060.00617.90
7.1.70.0070.00017.02
7.1.60.0030.00716.86
7.1.50.0030.00916.83
7.1.40.0040.00816.64
7.1.30.0070.00416.64
7.1.20.0040.00816.64
7.1.10.0000.01116.64
7.1.00.0040.00416.71
7.0.200.0040.00416.70
7.0.190.0030.00716.64
7.0.180.0020.00516.64
7.0.170.0090.00016.64
7.0.160.0040.00416.64
7.0.150.0000.00716.64
7.0.140.0030.00516.64
7.0.130.0030.00516.64
7.0.120.0000.00816.64
7.0.110.0100.00316.64
7.0.100.0030.00516.64
7.0.90.0080.00016.64
7.0.80.0020.00516.64
7.0.70.0000.00816.64
7.0.60.0040.00716.64
7.0.50.0000.00716.64
7.0.40.0000.00716.64
7.0.30.0040.00416.64
7.0.20.0040.00416.64
7.0.10.0040.00416.64
7.0.00.0060.01016.64
5.6.300.0130.03720.91
5.6.290.0070.03920.58
5.6.280.0130.03021.00
5.6.270.0070.04221.10
5.6.260.0000.04620.87
5.6.250.0040.04621.07
5.6.240.0070.03720.87
5.6.230.0070.08520.84
5.6.220.0030.04720.81
5.6.210.0100.03321.09
5.6.200.0100.04021.06
5.6.190.0130.03621.04
5.6.180.0130.04220.96
5.6.170.0030.05621.05
5.6.160.0030.08220.76
5.6.150.0000.06421.05
5.6.140.0140.03720.89
5.6.130.0030.04420.91
5.6.120.0000.05920.94
5.6.110.0030.04620.82
5.6.100.0030.04521.02
5.6.90.0030.04221.01
5.6.80.0060.03920.08
5.6.70.0060.03620.38
5.6.60.0030.03920.29
5.6.50.0100.07020.21
5.6.40.0060.04520.42
5.6.30.0100.06620.18
5.6.20.0070.03620.39
5.6.10.0030.03920.13
5.6.00.0130.05720.30

preferences:
28.19 ms | 403 KiB | 5 Q