3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { private $action = 'a'; } class b extends a { public function __construct() { $this->action = 'b'; print $this->action; } public function test() { print PHP_EOL. $this->action; } } $b = new b; $b->test();

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.0100.01016.75
8.3.50.0130.00522.84
8.3.40.0080.00818.60
8.3.30.0140.00719.18
8.3.20.0000.00820.29
8.3.10.0100.01020.34
8.3.00.0060.00319.50
8.2.180.0080.00816.63
8.2.170.0120.00322.96
8.2.160.0100.00722.12
8.2.150.0140.00724.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0080.00020.73
8.2.110.0040.00419.27
8.2.100.0000.01117.91
8.2.90.0000.01119.57
8.2.80.0040.00417.50
8.2.70.0060.00317.63
8.2.60.0060.00618.04
8.2.50.0030.00618.07
8.2.40.0040.00418.11
8.2.30.0070.00017.91
8.2.20.0070.00017.56
8.2.10.0050.00218.04
8.2.00.0000.00717.61
8.1.280.0110.00725.92
8.1.270.0030.00620.65
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0060.00322.55
8.1.230.0080.00320.92
8.1.220.0040.00417.74
8.1.210.0060.00318.94
8.1.200.0000.00917.47
8.1.190.0060.00317.23
8.1.180.0050.00222.17
8.1.170.0000.00818.74
8.1.160.0070.00018.81
8.1.150.0070.00018.87
8.1.140.0000.00717.44
8.1.130.0000.00717.82
8.1.120.0000.00717.39
8.1.110.0030.00417.27
8.1.100.0080.00017.39
8.1.90.0050.00217.38
8.1.80.0030.00317.34
8.1.70.0030.00517.33
8.1.60.0060.00317.64
8.1.50.0050.00317.45
8.1.40.0050.00217.43
8.1.30.0050.00317.64
8.1.20.0000.00817.64
8.1.10.0000.00817.42
8.1.00.0060.00317.47
8.0.300.0000.00719.79
8.0.290.0080.00016.63
8.0.280.0040.00418.31
8.0.270.0070.00017.23
8.0.260.0030.00317.15
8.0.250.0060.00016.95
8.0.240.0000.00717.01
8.0.230.0040.00416.94
8.0.220.0080.00016.78
8.0.210.0040.00416.75
8.0.200.0000.00716.87
8.0.190.0070.00016.86
8.0.180.0000.00816.89
8.0.170.0000.00716.93
8.0.160.0040.00416.77
8.0.150.0000.00816.73
8.0.140.0050.00316.86
8.0.130.0030.00313.29
8.0.120.0040.00416.75
8.0.110.0000.00716.83
8.0.100.0000.00716.71
8.0.90.0050.00216.80
8.0.80.0090.00616.85
8.0.70.0040.00416.86
8.0.60.0070.00016.77
8.0.50.0000.00716.79
8.0.30.0050.01317.01
8.0.20.0070.01217.40
8.0.10.0050.00216.72
8.0.00.0140.00316.66
7.4.330.0020.00215.02
7.4.320.0030.00316.55
7.4.300.0030.00316.54
7.4.290.0030.00316.50
7.4.280.0030.00316.63
7.4.270.0040.00416.58
7.4.260.0030.00516.59
7.4.250.0040.00416.54
7.4.240.0030.00516.59
7.4.230.0030.00316.49
7.4.220.0040.01416.44
7.4.210.0050.00816.44
7.4.200.0000.00716.43
7.4.160.0070.01016.32
7.4.150.0120.00917.40
7.4.140.0070.01017.86
7.4.130.0060.01116.44
7.4.120.0120.00716.53
7.4.110.0070.01416.48
7.4.100.0170.00016.34
7.4.90.0160.00616.43
7.4.80.0060.01116.38
7.4.70.0060.01016.66
7.4.60.0060.01016.46
7.4.50.0030.00616.46
7.4.40.0040.01116.60
7.4.30.0170.00616.48
7.4.00.0060.00814.99
7.3.330.0030.00313.17
7.3.320.0030.00313.18
7.3.310.0030.00316.36
7.3.300.0000.00716.17
7.3.290.0070.00716.29
7.3.280.0050.01216.28
7.3.270.0090.01217.40
7.3.260.0100.00716.29
7.3.250.0140.00616.29
7.3.240.0040.01216.54
7.3.230.0060.01116.42
7.3.210.0080.01116.58
7.3.200.0100.00619.39
7.3.190.0110.00616.64
7.3.180.0120.00816.34
7.3.170.0080.00816.30
7.3.160.0140.00616.45
7.3.120.0030.01214.56
7.3.110.0040.01414.42
7.3.100.0100.00314.73
7.3.90.0070.01014.71
7.3.80.0060.00614.75
7.3.70.0030.01014.84
7.3.60.0140.00214.73
7.3.50.0070.01014.72
7.3.40.0130.00314.52
7.3.30.0080.00314.56
7.3.20.0100.00316.70
7.3.10.0100.00016.46
7.3.00.0080.00516.48
7.2.330.0070.01016.71
7.2.320.0070.01116.71
7.2.310.0070.01516.75
7.2.300.0060.01016.62
7.2.290.0150.00316.32
7.2.240.0110.00714.61
7.2.230.0000.01214.89
7.2.220.0060.01315.26
7.2.210.0040.01115.04
7.2.200.0060.00914.90
7.2.190.0060.00914.93
7.2.180.0060.00915.02
7.2.170.0100.00714.64
7.2.160.0120.00314.98
7.2.150.0040.00716.91
7.2.140.0100.00717.00
7.2.130.0060.00316.96
7.2.120.0000.01417.02
7.2.110.0000.00917.00
7.2.100.0030.00916.88
7.2.90.0030.00916.66
7.2.80.0100.00316.75
7.2.70.0000.01216.84
7.2.60.0080.00816.74
7.2.50.0000.01216.84
7.2.40.0070.00716.84
7.2.30.0030.00917.05
7.2.20.0100.00316.80
7.2.10.0090.00916.60
7.2.00.0100.01016.88
7.1.330.0060.01215.64
7.1.320.0070.01115.62
7.1.310.0060.00615.69
7.1.300.0100.00015.80
7.1.290.0030.00615.67
7.1.280.0000.01015.71
7.1.270.0040.00815.60
7.1.260.0060.00815.71
7.1.250.0000.01215.46
7.1.200.0000.01515.73
7.1.100.0000.01217.61
7.1.70.0040.00717.18
7.1.60.0130.01019.34
7.1.50.0070.01716.89
7.1.00.0000.07722.28
7.0.200.0110.01116.63
7.0.140.0000.07022.07
7.0.60.0030.08719.96
7.0.50.0100.07317.86
7.0.40.0070.04020.27
7.0.30.0400.06720.30
7.0.20.0370.06020.05
7.0.10.0100.08020.16
7.0.00.0030.04320.22
5.6.210.0000.04320.65
5.6.200.0170.05318.14
5.6.190.0000.09020.64
5.6.180.0030.06020.52
5.6.170.0170.04720.55
5.6.160.0030.04320.54
5.6.150.0070.08018.23
5.6.140.0070.08318.18
5.6.130.0030.04718.16
5.6.120.0170.06321.15
5.6.110.0130.06720.99
5.6.100.0030.09021.11
5.6.90.0130.07720.98
5.6.80.0100.06320.54
5.5.350.0270.06720.39
5.5.340.0100.08017.99
5.5.330.0070.03720.39
5.5.320.0200.07720.32
5.5.310.0330.07720.25
5.5.300.0000.04718.07
5.5.290.0000.05018.00
5.5.280.0030.06720.74
5.5.270.0030.04020.98
5.5.260.0100.06720.95
5.5.250.0100.07020.71
5.5.240.3200.03320.27
5.4.450.0100.05719.48
5.4.440.0600.05719.30
5.4.430.0700.06319.49
5.4.420.0100.05719.36
5.4.410.0130.05719.45
5.4.400.0330.05018.76
5.4.390.0370.07318.75
5.4.380.0430.05318.57
5.4.370.0170.05018.50
5.4.360.0200.06318.79
5.4.350.0070.03712.02
5.4.340.0040.03712.02
5.4.320.0050.04212.50
5.4.310.0040.04012.50
5.4.300.0090.04112.50
5.4.290.0090.05112.50
5.4.280.0090.04812.40
5.4.270.0070.04912.39
5.4.260.0080.04512.40
5.4.250.0110.03312.40
5.4.240.0080.03512.40
5.4.230.0070.03812.39
5.4.220.0060.04012.39
5.4.210.0070.04212.39
5.4.200.0040.04612.39
5.4.190.0080.04212.39
5.4.180.0100.03712.39
5.4.170.0100.03612.40
5.4.160.0050.04012.39
5.4.150.0070.03912.39
5.4.140.0040.04012.07
5.4.130.0060.03912.06
5.4.120.0020.03912.02
5.4.110.0040.03712.02
5.4.100.0020.03912.01
5.4.90.0090.04412.02
5.4.80.0100.04712.02
5.4.70.0070.04812.01
5.4.60.0100.03412.01
5.4.50.0090.05312.01
5.4.40.0060.05112.00
5.4.30.0090.04612.00
5.4.20.0070.05012.00
5.4.10.0120.04312.00
5.4.00.0090.03711.49
5.3.290.0060.04212.80
5.3.280.0080.03612.70
5.3.270.0080.03712.72
5.3.260.0060.04012.72
5.3.250.0050.03912.72
5.3.240.0070.04212.72
5.3.230.0080.04512.71
5.3.220.0050.04212.68
5.3.210.0090.04412.68
5.3.200.0110.03812.68
5.3.190.0120.03812.68
5.3.180.0050.04512.67
5.3.170.0080.04012.66
5.3.160.0040.03912.67
5.3.150.0070.03812.67
5.3.140.0070.04012.66
5.3.130.0100.05212.66
5.3.120.0050.04912.65
5.3.110.0060.04212.66
5.3.100.0080.03812.12
5.3.90.0090.04112.11
5.3.80.0090.04212.10
5.3.70.0080.04312.10
5.3.60.0110.04212.08
5.3.50.0040.04512.02
5.3.40.0060.04712.02
5.3.30.0110.04211.99
5.3.20.0180.08311.76
5.3.10.0100.04311.73
5.3.00.0090.03611.72
5.2.170.0030.0359.22
5.2.160.0030.0329.22
5.2.150.0060.0339.22
5.2.140.0070.0359.22
5.2.130.0060.0379.18
5.2.120.0050.0319.18
5.2.110.0050.0339.18
5.2.100.0080.0409.18
5.2.90.0090.0339.18
5.2.80.0030.0349.18
5.2.70.0080.0299.18
5.2.60.0060.0309.13
5.2.50.0080.0409.10
5.2.40.0070.0399.08
5.2.30.0110.0599.05
5.2.20.0090.0349.04
5.2.10.0070.0358.95
5.2.00.0040.0408.81
5.1.60.0070.0318.09
5.1.50.0100.0308.09
5.1.40.0100.0298.07
5.1.30.0080.0338.42
5.1.20.0050.0388.44
5.1.10.0080.0318.16
5.1.00.0060.0298.16
5.0.50.0040.0286.64
5.0.40.0050.0266.50
5.0.30.0020.0336.32
5.0.20.0020.0216.29
5.0.10.0040.0196.26
5.0.00.0050.0356.25
4.4.90.0020.0234.78
4.4.80.0030.0214.76
4.4.70.0070.0174.75
4.4.60.0020.0224.76
4.4.50.0000.0204.77
4.4.40.0030.0274.71
4.4.30.0020.0164.76
4.4.20.0030.0184.85
4.4.10.0030.0184.85
4.4.00.0030.0274.76
4.3.110.0000.0184.67
4.3.100.0050.0134.66
4.3.90.0010.0174.64
4.3.80.0030.0264.58
4.3.70.0050.0154.63
4.3.60.0050.0134.63
4.3.50.0050.0154.63
4.3.40.0020.0264.54
4.3.30.0030.0153.30
4.3.20.0010.0183.28
4.3.10.0020.0183.23
4.3.00.0170.0207.27

preferences:
54.04 ms | 401 KiB | 5 Q