3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public $a; public function __construct() { $this->a = "A"; } } class B extends A { public function __construct($a) { $this->a = $a; } } $class = new B("XXXX"); var_dump($class->a);

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.00316.86
8.3.50.0110.01121.93
8.3.40.0120.00318.48
8.3.30.0070.00718.63
8.3.20.0070.00020.32
8.3.10.0060.00323.63
8.3.00.0000.00723.59
8.2.180.0090.00618.54
8.2.170.0070.00722.96
8.2.160.0110.00420.35
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00819.20
8.2.120.0040.00426.35
8.2.110.0050.00519.38
8.2.100.0120.00018.04
8.2.90.0040.00419.05
8.2.80.0000.00817.97
8.2.70.0030.00517.38
8.2.60.0030.00617.68
8.2.50.0040.00418.07
8.2.40.0040.00422.11
8.2.30.0060.00320.55
8.2.20.0080.00017.48
8.2.10.0040.00417.90
8.2.00.0050.00217.92
8.1.280.0030.01325.92
8.1.270.0000.00820.38
8.1.260.0030.00628.09
8.1.250.0100.01028.09
8.1.240.0080.00024.02
8.1.230.0040.00820.87
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.36
8.1.190.0000.00917.23
8.1.180.0070.00018.10
8.1.170.0000.01118.43
8.1.160.0030.00720.61
8.1.150.0000.00718.88
8.1.140.0050.00319.44
8.1.130.0000.00717.68
8.1.120.0050.00317.34
8.1.110.0070.00017.36
8.1.100.0080.00017.26
8.1.90.0070.00017.29
8.1.80.0080.00017.33
8.1.70.0060.00317.35
8.1.60.0040.00417.50
8.1.50.0080.00017.58
8.1.40.0040.00417.51
8.1.30.0000.00817.67
8.1.20.0030.00517.56
8.1.10.0080.00017.45
8.1.00.0040.00417.41
8.0.300.0000.00718.77
8.0.290.0000.00816.58
8.0.280.0000.00718.34
8.0.270.0040.00417.20
8.0.260.0030.00317.12
8.0.250.0000.00716.87
8.0.240.0000.00816.94
8.0.230.0070.00016.83
8.0.220.0070.00016.88
8.0.210.0040.00416.73
8.0.200.0030.00516.82
8.0.190.0030.00316.88
8.0.180.0040.00416.74
8.0.170.0040.00416.86
8.0.160.0030.00316.81
8.0.150.0030.00316.84
8.0.140.0000.00716.72
8.0.130.0050.00013.15
8.0.120.0050.00216.77
8.0.110.0030.00516.86
8.0.100.0000.00716.93
8.0.90.0040.00416.71
8.0.80.0150.00016.85
8.0.70.0040.00416.73
8.0.60.0070.00016.80
8.0.50.0030.00516.86
8.0.30.0100.00916.96
8.0.20.0130.00617.40
8.0.10.0000.00716.99
8.0.00.0080.01016.67
7.4.330.0040.00016.67
7.4.320.0000.00616.59
7.4.300.0080.00016.61
7.4.290.0000.00716.53
7.4.280.0030.00316.42
7.4.270.0030.00316.50
7.4.260.0040.00416.55
7.4.250.0080.00016.61
7.4.240.0050.00216.52
7.4.230.0000.00716.40
7.4.220.0130.00616.53
7.4.210.0040.01416.52
7.4.200.0000.00716.54
7.4.160.0080.00816.36
7.4.150.0030.01617.40
7.4.140.0120.00917.86
7.4.130.0090.00816.48
7.4.120.0080.00816.53
7.4.110.0030.01416.66
7.4.100.0090.01216.58
7.4.90.0090.00916.42
7.4.80.0040.01519.39
7.4.70.0110.00616.50
7.4.60.0100.00716.48
7.4.50.0060.00916.52
7.4.40.0100.00716.30
7.4.30.0110.00816.50
7.4.00.0070.00714.89
7.3.330.0020.00213.18
7.3.320.0050.00012.98
7.3.310.0030.00316.07
7.3.300.0000.00716.24
7.3.290.0100.00816.20
7.3.280.0070.01216.20
7.3.270.0070.01017.40
7.3.260.0130.01016.28
7.3.250.0100.00916.28
7.3.240.0100.00816.41
7.3.230.0070.01416.42
7.3.210.0060.01016.28
7.3.200.0180.00916.40
7.3.190.0130.00916.21
7.3.180.0050.01116.52
7.3.170.0110.00616.31
7.3.160.0040.01116.25
7.3.120.0030.01414.95
7.3.110.0070.01114.77
7.3.100.0060.01314.81
7.3.90.0100.00314.89
7.3.80.0060.00314.94
7.3.70.0060.00914.54
7.3.60.0080.00514.64
7.3.50.0040.01114.75
7.3.40.0090.00914.59
7.3.30.0110.00014.45
7.3.20.0080.00416.45
7.3.10.0060.01016.64
7.3.00.0060.00416.52
7.2.330.0000.01716.56
7.2.320.0100.01316.40
7.2.310.0090.00616.70
7.2.300.0060.01016.64
7.2.290.0100.00716.54
7.2.250.0040.01414.95
7.2.240.0060.01315.02
7.2.230.0110.00414.63
7.2.220.0060.00915.28
7.2.210.0000.00915.11
7.2.200.0090.00615.12
7.2.190.0060.00614.77
7.2.180.0030.01414.90
7.2.170.0140.00415.09
7.2.160.0080.00614.79
7.2.150.0000.01017.05
7.2.140.0080.00816.90
7.2.130.0080.00516.83
7.2.120.0070.00716.86
7.2.110.0050.00916.81
7.2.100.0040.00816.98
7.2.90.0070.00716.69
7.2.80.0060.00616.90
7.2.70.0070.00616.82
7.2.60.0060.00616.93
7.2.50.0070.00516.69
7.2.40.0080.00316.98
7.2.30.0030.00817.00
7.2.20.0030.00916.74
7.2.10.0080.00516.84
7.2.00.0050.01217.68
7.1.330.0110.00615.79
7.1.320.0100.00315.80
7.1.310.0070.01015.90
7.1.300.0090.00615.75
7.1.290.0100.00315.55
7.1.280.0000.01715.56
7.1.270.0000.01515.73
7.1.260.0100.00715.83
7.1.250.0070.00315.83
7.1.240.0000.01415.55
7.1.230.0060.00615.77
7.1.220.0050.00515.82
7.1.210.0080.00015.41
7.1.200.0030.01415.81
7.1.190.0080.00315.66
7.1.180.0030.00715.87
7.1.170.0090.00415.81
7.1.160.0030.00915.90
7.1.150.0060.00615.81
7.1.140.0100.00315.89
7.1.130.0100.00315.81
7.1.120.0090.00615.63
7.1.110.0030.01415.94
7.1.100.0030.00516.96
7.1.90.0060.00915.66
7.1.80.0000.00815.46
7.1.70.0020.01116.52
7.1.60.0080.01017.70
7.1.50.0080.01116.14
7.1.40.0080.00415.68
7.1.30.0040.00715.46
7.1.20.0120.00015.77
7.1.10.0040.00415.59
7.1.00.0050.04219.21
7.0.330.0000.01215.54
7.0.320.0080.00415.34
7.0.310.0070.00315.57
7.0.300.0040.00715.54
7.0.290.0090.00015.43
7.0.280.0070.00715.33
7.0.270.0000.00915.14
7.0.260.0000.01515.38
7.0.250.0030.01315.02
7.0.240.0110.00015.57
7.0.230.0030.01015.45
7.0.220.0030.00815.48
7.0.210.0100.00315.35
7.0.200.0030.00715.99
7.0.190.0000.01415.51
7.0.180.0040.00815.09
7.0.170.0120.00015.27
7.0.160.0060.00915.56
7.0.150.0040.00715.52
7.0.140.0030.00915.15
7.0.130.0040.00815.57
7.0.120.0000.01315.07
7.0.110.0000.01115.41
7.0.100.0080.00315.39
7.0.90.0060.00315.15
7.0.80.0100.00315.03
7.0.70.0030.00615.39
7.0.60.0080.04217.74
7.0.50.0080.02416.76
7.0.40.0080.02316.76
7.0.30.0100.03016.68
7.0.20.0100.02616.68
7.0.10.0080.03216.61
7.0.00.0040.02616.85
5.6.400.0080.00814.51
5.6.390.0060.00314.40
5.6.380.0100.00314.31
5.6.370.0070.00714.62
5.6.360.0100.00014.39
5.6.350.0070.00714.52
5.6.340.0060.00614.50
5.6.330.0060.00914.18
5.6.320.0090.00314.39
5.6.310.0100.00614.57
5.6.300.0090.00314.42
5.6.290.0050.00814.15
5.6.280.0040.02017.79
5.6.270.0090.00614.53
5.6.260.0070.00714.43
5.6.250.0070.01014.13
5.6.240.0050.00814.21
5.6.230.0060.00614.49
5.6.220.0000.01414.32
5.6.210.0080.04217.65
5.6.200.0050.02916.41
5.6.190.0080.04617.36
5.6.180.0120.04517.40
5.6.170.0120.02917.49
5.6.160.0060.03117.52
5.6.150.0070.04116.38
5.6.140.0070.04316.15
5.6.130.0080.03616.30
5.6.120.0080.04117.64
5.6.110.0050.04517.54
5.6.100.0110.03017.69
5.6.90.0090.02817.53
5.6.80.0030.02617.36
5.6.70.0070.01014.48
5.6.60.0140.00014.18
5.6.50.0070.01013.93
5.6.40.0070.00414.30
5.6.30.0040.01114.30
5.6.20.0030.01213.96
5.6.10.0030.00714.32
5.6.00.0050.00314.34
5.5.380.0100.00714.04
5.5.370.0040.00413.97
5.5.360.0060.00614.11
5.5.350.2150.02217.33
5.5.340.0070.02016.09
5.5.330.0000.03217.44
5.5.320.0170.02517.34
5.5.310.0240.03817.27
5.5.300.0050.02516.09
5.5.290.0050.03516.16
5.5.280.0060.04317.54
5.5.270.0110.02317.69
5.5.260.0050.04417.62
5.5.250.0060.03317.48
5.5.240.0120.03017.23
5.5.230.0000.01514.31
5.5.220.0070.00714.18
5.5.210.0070.00314.39
5.5.200.0090.00314.29
5.5.190.0100.00713.94
5.5.180.0100.00314.22
5.5.170.0090.00613.98
5.5.160.0000.01014.41
5.5.150.0000.00914.36
5.5.140.0080.00014.25
5.5.130.0000.01114.23
5.5.120.0000.01114.39
5.5.110.0000.01414.39
5.5.100.0030.00614.06
5.5.90.0040.00914.07
5.5.80.0070.01014.17
5.5.70.0000.01813.97
5.5.60.0110.00314.02
5.5.50.0100.00014.21
5.5.40.0040.00714.35
5.5.30.0030.00614.02
5.5.20.0040.01014.48
5.5.10.0000.01414.41
5.5.00.0120.00014.45

preferences:
33.91 ms | 401 KiB | 5 Q