3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { private $stuff = 1; function getStuff() { return $this->stuff; } } class bar extends foo { function getStuff() { return $this->stuff; } } echo (new foo())->getStuff(); echo (new bar())->getStuff();

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.0120.00616.63
8.3.50.0150.00622.93
8.3.40.0120.00318.88
8.3.30.0030.01018.93
8.3.20.0070.00020.35
8.3.10.0080.00023.54
8.3.00.0050.00319.38
8.2.180.0150.00016.63
8.2.170.0040.01522.96
8.2.160.0110.00420.57
8.2.150.0070.00024.18
8.2.140.0000.00824.66
8.2.130.0160.00326.16
8.2.120.0000.00721.01
8.2.110.0050.00522.13
8.2.100.0060.00617.84
8.2.90.0080.00019.08
8.2.80.0040.00417.97
8.2.70.0050.00317.38
8.2.60.0000.00818.04
8.2.50.0080.00318.07
8.2.40.0030.00619.82
8.2.30.0040.00417.99
8.2.20.0030.00517.50
8.2.10.0000.00717.86
8.2.00.0000.00717.54
8.1.280.0140.00025.92
8.1.270.0080.00023.97
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.81
8.1.230.0030.00719.21
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0060.00317.23
8.1.190.0050.00317.10
8.1.180.0000.00718.10
8.1.170.0080.00018.59
8.1.160.0040.00421.93
8.1.150.0000.00718.75
8.1.140.0000.00717.25
8.1.130.0000.00717.75
8.1.120.0030.00317.32
8.1.110.0040.00417.27
8.1.100.0040.00417.32
8.1.90.0060.00317.34
8.1.80.0050.00317.35
8.1.70.0000.00817.25
8.1.60.0070.00317.50
8.1.50.0040.00417.34
8.1.40.0060.00317.36
8.1.30.0000.00817.59
8.1.20.0040.00417.41
8.1.10.0000.00717.41
8.1.00.0040.00417.42
8.0.300.0070.00018.77
8.0.290.0030.00516.75
8.0.280.0000.00718.36
8.0.270.0070.00017.25
8.0.260.0000.00718.39
8.0.250.0030.00317.00
8.0.240.0030.00316.98
8.0.230.0030.00316.87
8.0.220.0040.00316.68
8.0.210.0000.00816.83
8.0.200.0060.00016.86
8.0.190.0040.00416.86
8.0.180.0040.00416.83
8.0.170.0060.00316.77
8.0.160.0000.00916.70
8.0.150.0050.00216.73
8.0.140.0080.00016.79
8.0.130.0000.00513.26
8.0.120.0070.00016.70
8.0.110.0030.00516.72
8.0.100.0040.00416.70
8.0.90.0070.00016.67
8.0.80.0080.00816.83
8.0.70.0050.00316.88
8.0.60.0000.00716.81
8.0.50.0040.00416.68
8.0.30.0130.01017.19
8.0.20.0160.00517.40
8.0.10.0030.00616.75
8.0.00.0090.00916.74
7.4.330.0020.00215.00
7.4.320.0040.00416.39
7.4.300.0030.00316.44
7.4.290.0040.00416.38
7.4.280.0040.00416.42
7.4.270.0030.00316.49
7.4.260.0000.00716.46
7.4.250.0000.00716.36
7.4.240.0020.00516.38
7.4.230.0030.00516.31
7.4.220.0120.00616.35
7.4.210.0090.00516.47
7.4.200.0080.00016.36
7.4.160.0030.01316.28
7.4.150.0150.00617.40
7.4.140.0110.00617.86
7.4.130.0080.01016.63
7.4.120.0080.01216.41
7.4.110.0070.01016.32
7.4.100.0130.01016.43
7.4.90.0130.00416.35
7.4.80.0110.00619.39
7.4.70.0110.00816.43
7.4.60.0060.00916.44
7.4.50.0000.00816.37
7.4.40.0070.01016.38
7.4.30.0110.00616.52
7.4.00.0000.01414.79
7.3.330.0000.00513.25
7.3.320.0060.00413.27
7.3.310.0070.00016.32
7.3.300.0070.00016.28
7.3.290.0070.00716.21
7.3.280.0120.00316.28
7.3.270.0060.01217.40
7.3.260.0050.01116.55
7.3.250.0090.00816.55
7.3.240.0130.00316.48
7.3.230.0080.01116.39
7.3.210.0100.01316.32
7.3.200.0170.00419.39
7.3.190.0070.01116.23
7.3.180.0160.00016.21
7.3.170.0060.00916.30
7.3.160.0060.00916.56
7.3.120.0070.00715.02
7.3.110.0080.00814.73
7.3.100.0110.00014.87
7.3.90.0030.01214.41
7.3.80.0030.00714.73
7.3.70.0030.00914.62
7.3.60.0040.01114.72
7.3.50.0000.01014.85
7.3.40.0100.00314.82
7.3.30.0000.00914.79
7.3.20.0040.00416.44
7.3.10.0020.01016.51
7.3.00.0060.00716.50
7.2.330.0090.00916.66
7.2.320.0090.00816.67
7.2.310.0080.01216.43
7.2.300.0100.00716.70
7.2.290.0060.00916.54
7.2.240.0030.01314.83
7.2.230.0120.00314.54
7.2.220.0000.00814.86
7.2.210.0090.00615.08
7.2.200.0000.00814.73
7.2.190.0030.01314.82
7.2.180.0040.00714.96
7.2.170.0080.00415.02
7.2.160.0080.00814.99
7.2.150.0090.00316.71
7.2.140.0060.00616.96
7.2.130.0040.00916.68
7.2.120.0050.01016.80
7.2.110.0020.00916.73
7.2.100.0060.00716.80
7.2.90.0040.01016.83
7.2.80.0030.01116.91
7.2.70.0060.00916.87
7.2.60.0040.01016.84
7.2.50.0080.00616.92
7.2.40.0050.00916.73
7.2.30.0040.01016.85
7.2.20.0040.00816.71
7.2.10.0050.00816.74
7.2.00.0070.00617.45
7.1.330.0100.00315.73
7.1.320.0070.00715.61
7.1.310.0000.01715.60
7.1.300.0070.00715.73
7.1.290.0050.00215.59
7.1.280.0040.01215.85
7.1.270.0070.00715.36
7.1.260.0090.00315.65
7.1.250.0070.00715.50
7.1.240.0070.00615.71
7.1.230.0030.01115.61
7.1.220.0110.00515.52
7.1.210.0030.01015.38
7.1.200.0100.00215.49
7.1.190.0030.00915.56
7.1.180.0100.00315.69
7.1.170.0070.00415.76
7.1.160.0060.00615.64
7.1.150.0060.00615.70
7.1.140.0030.01015.73
7.1.130.0030.00915.63
7.1.120.0000.00915.62
7.1.110.0050.00615.66
7.1.100.0100.00516.25
7.1.90.0060.00915.62
7.1.80.0050.01115.67
7.1.70.0050.00715.85
7.1.60.0070.01216.87
7.1.50.0100.00616.06
7.1.40.0070.00615.53
7.1.30.0020.01015.57
7.1.20.0100.00215.42
7.1.10.0080.00315.61
7.1.00.0060.02817.85
7.0.330.0090.00015.33
7.0.320.0040.00415.16
7.0.310.0050.00715.23
7.0.300.0050.00715.12
7.0.290.0000.01415.37
7.0.280.0080.00615.26
7.0.270.0040.00815.09
7.0.260.0030.00815.06
7.0.250.0020.00915.17
7.0.240.0020.01015.33
7.0.230.0090.00215.13
7.0.220.0080.00715.31
7.0.210.0040.00615.09
7.0.200.0030.00815.70
7.0.190.0090.00515.27
7.0.180.0050.00715.42
7.0.170.0080.00515.18
7.0.160.0070.00615.23
7.0.150.0080.00715.30
7.0.140.0020.03217.69
7.0.130.0050.00815.27
7.0.120.0060.00715.46
7.0.110.0080.00615.21
7.0.100.0080.00515.29
7.0.90.0080.00615.25
7.0.80.0030.00815.38
7.0.70.0060.00715.16
7.0.60.0100.02816.78
7.0.50.0030.03616.13
7.0.40.0010.03515.59
7.0.30.0080.02015.68
7.0.20.0070.02215.61
7.0.10.0060.01515.46
7.0.00.0080.02815.46
5.6.380.0050.00814.17
5.6.370.0050.00314.18
5.6.360.0020.00914.16
5.6.350.0050.00814.29
5.6.340.0020.01314.23
5.6.330.0060.00614.22
5.6.320.0000.01114.15
5.6.310.0030.00814.29
5.6.300.0050.00714.40
5.6.290.0080.00314.25
5.6.280.0050.02816.39
5.6.270.0040.00614.24
5.6.260.0070.00514.10
5.6.250.0100.00514.30
5.6.240.0050.00914.16
5.6.230.0100.00314.15
5.6.220.0060.00314.10
5.6.210.0060.01616.27
5.6.200.0070.03315.46
5.6.190.0030.02216.20
5.6.180.0140.02116.40
5.6.170.0100.01816.34
5.6.160.0050.02416.31
5.6.150.0080.03015.51
5.6.140.0080.01715.60
5.6.130.0040.01915.52
5.6.120.0060.03216.36
5.6.110.0040.03316.46
5.6.100.0030.03016.45
5.6.90.0040.03416.53
5.6.80.0110.02816.23
5.6.70.0030.00714.07
5.6.60.0080.00514.16
5.6.50.0030.00914.17
5.6.40.0050.00914.09
5.6.30.0020.00913.98
5.6.20.0030.00714.12
5.6.10.0020.01114.39
5.6.00.0030.01014.16
5.5.380.0060.00411.43
5.5.370.0030.00611.21
5.5.360.0060.00511.50
5.5.350.0110.03014.32
5.5.340.0060.01613.59
5.5.330.0090.03014.35
5.5.320.0090.02414.34
5.5.310.0100.01814.38
5.5.300.0090.02713.50
5.5.290.0030.03113.44
5.5.280.0090.02714.52
5.5.270.0040.03114.54
5.5.260.0080.01514.50
5.5.250.0040.02914.40
5.5.240.0010.03214.19
5.5.230.0070.00311.20
5.5.220.0030.00711.33
5.5.210.0010.00711.30
5.5.200.0020.00711.29
5.5.190.0070.00411.40
5.5.180.0020.00811.32
5.5.170.0050.00511.35
5.5.160.0040.00411.20
5.5.150.0040.00411.34
5.5.140.0060.00311.29
5.5.130.0040.00311.29
5.5.120.0080.00211.21
5.5.110.0040.00311.32
5.5.100.0040.00311.19
5.5.90.0000.00911.25
5.5.80.0060.00411.38
5.5.70.0060.00511.28
5.5.60.0060.00511.21
5.5.50.0020.00611.11
5.5.40.0030.00611.12
5.5.30.0080.00311.24
5.5.20.0030.00611.03
5.5.10.0070.00311.37
5.5.00.0020.00911.36
5.4.450.0300.02214.15
5.4.440.0270.02314.04
5.4.430.0270.02014.04
5.4.420.0230.02113.98
5.4.410.0070.02013.81
5.4.400.0150.02113.71
5.4.390.0130.02313.66
5.4.380.0050.02113.78
5.4.370.0020.02213.75
5.4.360.0040.01713.65
5.4.350.0030.01711.53
5.4.340.0040.01711.50
5.4.330.0050.00611.34
5.4.320.0050.02011.63
5.4.310.0060.01611.67
5.4.300.0040.01711.73
5.4.290.0030.01911.58
5.4.280.0060.01411.66
5.4.270.0070.01511.64
5.4.260.0030.02011.66
5.4.250.0040.01711.71
5.4.240.0050.01511.61
5.4.230.0040.01611.64
5.4.220.0060.01411.61
5.4.210.0040.01611.65
5.4.200.0040.01711.61
5.4.190.0020.02011.65
5.4.180.0040.01711.61
5.4.170.0050.01611.62
5.4.160.0060.01511.66
5.4.150.0050.01411.53
5.4.140.0060.01511.63
5.4.130.0020.02111.56
5.4.120.0040.01511.55
5.4.110.0050.01611.56
5.4.100.0020.01811.44
5.4.90.0050.01711.48
5.4.80.0070.01511.46
5.4.70.0080.01311.57
5.4.60.0040.01611.56
5.4.50.0050.01611.48
5.4.40.0040.01711.57
5.4.30.0070.01411.48
5.4.20.0080.01611.43
5.4.10.0060.02111.49
5.4.00.0080.01511.24
5.3.290.0060.01711.60
5.3.280.0050.01411.56
5.3.270.0070.01611.54
5.3.260.0020.02011.58
5.3.250.0060.01411.56
5.3.240.0040.01611.50
5.3.230.0060.01611.49
5.3.220.0040.01611.52
5.3.210.0040.01611.49
5.3.200.0050.01611.52
5.3.190.0040.01611.48
5.3.180.0030.01711.58
5.3.170.0040.01711.56
5.3.160.0050.01711.49
5.3.150.0060.01311.58
5.3.140.0040.01711.55
5.3.130.0050.01911.52
5.3.120.0080.01511.50
5.3.110.0080.01511.55
5.3.100.0060.01711.30
5.3.90.0060.01611.39
5.3.80.0050.01911.29
5.3.70.0050.01811.29
5.3.60.0050.01711.29
5.3.50.0050.01611.27
5.3.40.0060.01611.27
5.3.30.0040.01611.28
5.3.20.0070.01611.18
5.3.10.0060.01511.17
5.3.00.0030.01911.17
5.2.170.0050.01210.33
5.2.160.0050.01110.33
5.2.150.0070.01510.33
5.2.140.0080.01210.33
5.2.130.0080.01310.32
5.2.120.0050.01310.32
5.2.110.0060.01310.32
5.2.100.0070.01210.32
5.2.90.0050.01510.32
5.2.80.0050.01410.32
5.2.70.0050.01210.32
5.2.60.0020.01510.30
5.2.50.0040.01510.29
5.2.40.0050.01310.29
5.2.30.0030.01410.27
5.2.20.0030.01410.27
5.2.10.0020.01710.24
5.2.00.0080.01110.20
5.1.60.0070.0099.96
5.1.50.0060.0109.95
5.1.40.0050.0109.95
5.1.30.0020.01410.06
5.1.20.0020.01510.07
5.1.10.0050.0119.98
5.1.00.0050.0129.98
5.0.50.0040.0109.47
5.0.40.0010.0109.43
5.0.30.0050.0129.36
5.0.20.0050.0089.35
5.0.10.0040.0119.34
5.0.00.0050.0119.34
4.4.90.0040.0078.85
4.4.80.0020.0088.84
4.4.70.0030.0078.84
4.4.60.0020.0108.84
4.4.50.0000.0108.85
4.4.40.0020.0098.83
4.4.30.0050.0058.84
4.4.20.0040.0078.87
4.4.10.0050.0058.88
4.4.00.0030.0108.84
4.3.110.0010.0088.81
4.3.100.0040.0068.81
4.3.90.0020.0088.80
4.3.80.0020.0108.79
4.3.70.0020.0078.80
4.3.60.0030.0078.80
4.3.50.0000.0108.80
4.3.40.0030.0098.77
4.3.30.0020.0078.36
4.3.20.0000.0098.35
4.3.10.0000.0098.34
4.3.00.0040.0119.63

preferences:
40.35 ms | 401 KiB | 5 Q