3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private $hola; public function setHola($name) { echo "I'm called"; $this->hola = $name; } } $a = new A; $a->hola = '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.0.00.0070.01116.60
7.4.130.0100.00916.61
7.4.120.0110.00816.30
7.4.110.0140.00416.37
7.4.100.0110.00816.24
7.4.90.0110.00816.13
7.4.80.0100.01016.28
7.4.70.0090.01116.17
7.4.60.0170.00416.40
7.4.50.0120.01116.46
7.4.40.0160.00616.22
7.4.30.0150.00816.57
7.4.20.0120.00916.14
7.4.10.0080.01016.50
7.4.00.0080.01016.39
7.3.260.0080.01116.25
7.3.240.0050.01416.32
7.3.230.0140.00416.29
7.3.220.0100.00816.02
7.3.210.0100.01016.16
7.3.200.0110.00616.04
7.3.190.0060.01216.43
7.3.180.0120.00816.13
7.3.170.0160.00616.43
7.3.160.0140.00816.38
7.3.150.0130.00716.30
7.3.140.0110.01016.02
7.3.130.0100.00916.32
7.3.120.0100.01016.33
7.3.110.0070.01316.17
7.3.100.0090.01016.27
7.3.90.0100.01216.26
7.3.80.0100.01216.35
7.3.70.0120.00816.19
7.3.60.0120.00816.24
7.3.50.0080.01416.27
7.3.40.0060.01216.17
7.3.30.0100.00915.92
7.3.20.0040.01716.22
7.3.10.0140.01216.23
7.3.00.0230.00816.27
7.2.340.0110.00616.26
7.2.330.0130.01016.42
7.2.320.0090.00916.44
7.2.310.0120.01216.60
7.2.300.0090.01116.46
7.2.290.0170.00816.47
7.2.280.0140.00716.37
7.2.270.0090.01416.42
7.2.260.0110.01016.43
7.2.250.0080.01316.54
7.2.240.0100.01116.63
7.2.230.0130.00916.52
7.2.220.0160.00816.48
7.2.210.0110.01116.40
7.2.200.0160.00516.42
7.2.190.0180.00516.25
7.2.180.0070.01516.46
7.2.170.0140.00516.22
7.2.160.0030.01516.33
7.2.150.0200.01016.68
7.2.140.0150.00616.58
7.2.130.0080.01216.19
7.2.120.0150.00816.49
7.2.110.0100.01216.47
7.2.100.0250.00316.60
7.2.90.0180.00916.55
7.2.80.0180.01116.58
7.2.70.0100.01116.54
7.2.60.0150.00616.42
7.2.50.0270.01016.67
7.2.40.0090.01016.53
7.2.30.0070.01516.24
7.2.20.0110.00916.25
7.2.10.0180.00516.45
7.2.00.0100.01216.25
7.1.330.0250.00315.66
7.1.320.0970.00815.44
7.1.310.0240.00615.60
7.1.300.0280.00415.53
7.1.290.0210.00915.43
7.1.280.0300.00315.50
7.1.270.0190.01015.41
7.1.260.0180.01115.55
7.1.250.0220.01015.44
7.1.240.0130.01615.34
7.1.230.0180.01015.45
7.1.220.0220.01115.41
7.1.210.0210.00915.44
7.1.200.0260.00815.45
7.1.190.0250.00715.48
7.1.180.0210.00815.35
7.1.170.0250.00415.41
7.1.160.0200.01015.37
7.1.150.0160.01615.47
7.1.140.0250.00315.48
7.1.130.0290.00015.32
7.1.120.0180.01215.46
7.1.110.0250.00315.60
7.1.100.0220.00715.42
7.1.90.0240.00315.48
7.1.80.0170.01015.42
7.1.70.0140.01415.55
7.1.60.0270.00015.40
7.1.50.0130.01315.40
7.1.40.0130.01315.25
7.1.30.0190.01315.44
7.1.20.0150.01215.63
7.1.10.0160.01215.38
7.1.00.0180.00915.40
7.0.330.0170.01115.07
7.0.320.0260.00515.11
7.0.310.0210.01215.26
7.0.300.0130.01715.15
7.0.290.0210.00615.09
7.0.280.0240.01115.14
7.0.270.0230.00314.98
7.0.260.0200.00715.05
7.0.250.0180.01115.30
7.0.240.0500.00815.25
7.0.230.0220.00515.34
7.0.220.0180.00915.14
7.0.210.0200.00615.04
7.0.200.0190.00615.39
7.0.190.0270.00015.21
7.0.180.0200.00615.26
7.0.170.0190.00715.29
7.0.160.0240.00515.10
7.0.150.0390.00915.33
7.0.140.0200.00515.20
7.0.130.0290.00915.27
7.0.120.0270.00615.21
7.0.110.0190.00815.26
7.0.100.0230.00915.28
7.0.90.0210.00715.18
7.0.80.0240.00915.14
7.0.70.0220.00615.14
7.0.60.0130.01315.07
7.0.50.0200.01215.09
7.0.40.0180.01015.14
7.0.30.0170.00915.21
7.0.20.0100.02615.11
7.0.10.0150.01115.06
7.0.00.0300.00915.13
5.6.400.0200.01116.03
5.6.390.0180.01216.08
5.6.380.0170.01315.91
5.6.370.0140.01815.98
5.6.360.0240.01015.99
5.6.350.0120.01815.70
5.6.340.0220.00915.89
5.6.330.0170.01315.82
5.6.320.0230.00716.12
5.6.310.0180.00916.07
5.6.300.0180.01215.91
5.6.290.0170.01415.71
5.6.280.0170.01316.03
5.6.270.0210.01115.87
5.6.260.0210.00915.79
5.6.250.0150.01515.80
5.6.240.0200.01016.02
5.6.230.0180.01215.91
5.6.220.0120.01715.75
5.6.210.0190.01115.82
5.6.200.0200.01215.88
5.6.190.0230.00916.01
5.6.180.0190.00915.95
5.6.170.0190.01115.88
5.6.160.0150.01315.79
5.6.150.0210.01315.89
5.6.140.0260.00916.03
5.6.130.0160.01216.05
5.6.120.0210.00715.91
5.6.110.0160.01315.84
5.6.100.0240.01215.88
5.6.90.0270.01015.88
5.6.80.0320.00716.21
5.6.70.0270.00715.79
5.6.60.0230.01015.93
5.6.50.0070.02616.07
5.6.40.0190.01915.99
5.6.30.0160.01315.72
5.6.20.0200.01015.90
5.6.10.0160.01215.75
5.6.00.0210.00715.84
5.5.380.0210.01215.80
5.5.370.0300.00015.86
5.5.360.0100.02015.67
5.5.350.0210.01115.79
5.5.340.0230.00715.94
5.5.330.0220.00616.05
5.5.320.0190.01015.59
5.5.310.0240.00815.79
5.5.300.0130.01615.85
5.5.290.0250.00315.71
5.5.280.0170.01315.96
5.5.270.0150.01915.95
5.5.260.0350.00415.94
5.5.250.0350.00615.93
5.5.240.0250.01515.91
5.5.230.0310.00615.85
5.5.220.0240.01215.75
5.5.210.0250.01015.83
5.5.200.0180.01515.83
5.5.190.0280.00415.96
5.5.180.0160.01315.63
5.5.170.0210.01015.86
5.5.160.0170.01016.02
5.5.150.0200.00815.78
5.5.140.0160.01615.52
5.5.130.0200.01015.45
5.5.120.0170.01515.82
5.5.110.0270.00315.69
5.5.100.0130.01615.80
5.5.90.0190.01015.84
5.5.80.0200.01015.82
5.5.70.0210.01215.79
5.5.60.0170.01315.67
5.5.50.0180.01115.86
5.5.40.0260.00815.88
5.5.30.0210.01215.86
5.5.20.0190.01915.81
5.5.10.0230.00815.73
5.5.00.0160.01415.76
5.4.450.0180.00413.27
5.4.440.0200.00013.27
5.4.430.0140.01413.27
5.4.420.0180.01013.27
5.4.410.0170.01313.27
5.4.400.0220.00613.27
5.4.390.0190.00613.27
5.4.380.0210.00713.27
5.4.370.0190.00413.27
5.4.360.0160.01113.27
5.4.350.0080.01613.27
5.4.340.0180.00413.27
5.4.330.0130.01013.27
5.4.320.0090.01513.27
5.4.310.0160.00813.27
5.4.300.0190.00613.27
5.4.290.0110.01113.27
5.4.280.0120.01013.27
5.4.270.0210.00513.27
5.4.260.0180.00513.27
5.4.250.0170.00913.27
5.4.240.0150.01313.27
5.4.230.0190.01013.27
5.4.220.0170.00713.27
5.4.210.0160.00913.27
5.4.200.0180.00313.27
5.4.190.0140.01113.27
5.4.180.0160.00713.27
5.4.170.0160.00713.27
5.4.160.0140.01413.27
5.4.150.0170.00313.27
5.4.140.0070.01413.27
5.4.130.0140.00613.27
5.4.120.0110.01113.27
5.4.110.0120.00913.27
5.4.100.0130.00713.27
5.4.90.0120.00913.27
5.4.80.0150.00613.27
5.4.70.0140.00613.27
5.4.60.0130.00913.27
5.4.50.0190.00013.27
5.4.40.0130.00813.27
5.4.30.0150.00413.27
5.4.20.0120.00913.27
5.4.10.0130.00713.27
5.4.00.0150.00613.27
5.3.290.0200.00613.27
5.3.280.0160.00813.27
5.3.270.0200.00613.27
5.3.260.0220.00913.27
5.3.250.0150.00813.27
5.3.240.0230.00613.27
5.3.230.0180.00513.27
5.3.220.0180.00813.27
5.3.210.0160.00813.27
5.3.200.0140.00713.27
5.3.190.0170.00713.27
5.3.180.0150.00913.27
5.3.170.0200.01013.27
5.3.160.0120.00813.27
5.3.150.0110.01813.27
5.3.140.0130.01013.27
5.3.130.0150.00613.27
5.3.120.0080.01513.27
5.3.110.0110.01213.27
5.3.100.0130.01013.27
5.3.90.0040.01713.27
5.3.80.0090.01313.27
5.3.70.0160.00613.27
5.3.60.0200.00513.27
5.3.50.0060.01713.27
5.3.40.0140.00713.27
5.3.30.0190.00813.27
5.3.20.0100.01013.27
5.3.10.0180.00413.27
5.3.00.0210.00413.27
5.2.170.0170.00013.27
5.2.160.0160.00313.27
5.2.150.0120.00613.27
5.2.140.0110.01113.27
5.2.130.0170.00613.27
5.2.120.0110.00813.27
5.2.110.0150.00413.27
5.2.100.0100.01013.27
5.2.90.0130.00613.27
5.2.80.0140.01113.27
5.2.70.0150.00513.27
5.2.60.0090.00913.27
5.2.50.0110.00813.27
5.2.40.0070.01013.27
5.2.30.0160.00313.27
5.2.20.0050.01413.27
5.2.10.0140.00513.27
5.2.00.0150.00313.27
5.1.60.0040.01213.27
5.1.50.0120.00413.27
5.1.40.0100.00613.27
5.1.30.0100.00613.27
5.1.20.0130.00413.27
5.1.10.0070.01013.27
5.1.00.0090.00613.27
5.0.50.0080.00613.27
5.0.40.0060.00613.27
5.0.30.0060.00713.27
5.0.20.0120.00413.27
5.0.10.0130.00013.27
5.0.00.0050.00913.27
4.4.90.0050.00513.27
4.4.80.0090.00013.27
4.4.70.0050.00313.27
4.4.60.0030.00613.27
4.4.50.0040.00413.27
4.4.40.0020.00713.27
4.4.30.0030.00713.27
4.4.20.0030.00613.27
4.4.10.0080.00013.27
4.4.00.0080.00013.27
4.3.110.0050.00313.27
4.3.100.0050.00313.27
4.3.90.0080.00313.27
4.3.80.0080.00013.27
4.3.70.0060.00313.27
4.3.60.0090.00013.27
4.3.50.0080.00013.27
4.3.40.0030.00613.27
4.3.30.0020.00513.27
4.3.20.0040.00413.27
4.3.10.0060.00013.27
4.3.00.0040.00413.27