3v4l.org

run code in 300+ PHP versions simultaneously
<?php class PHPApprentice { private $velocity = ''; public function __construct () { $this->velocity = 'fast!'; } public function getLearningVelocity () { return $this->velocity; } public function setLearningVelocity ( $value ) { $this->velocity = $value; } } $rafa = new PHPApprentice (); $rafa->setLearningVelocity ( 'Ludicrous Speed!!' ); echo $rafa->getLearningVelocity ();

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.0070.01418.30
8.3.50.0120.00816.57
8.3.40.0140.00018.67
8.3.30.0140.00018.62
8.3.20.0070.00018.73
8.3.10.0060.00320.36
8.3.00.0040.00417.63
8.2.180.0150.00616.38
8.2.170.0130.00722.96
8.2.160.0140.00022.25
8.2.150.0090.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00419.77
8.2.110.0030.00620.80
8.2.100.0000.01117.86
8.2.90.0050.00319.29
8.2.80.0080.00017.97
8.2.70.0050.00317.59
8.2.60.0050.00318.05
8.2.50.0000.00818.07
8.2.40.0050.00519.95
8.2.30.0000.00717.96
8.2.20.0070.00017.65
8.2.10.0030.00617.66
8.2.00.0030.00617.62
8.1.280.0070.00725.92
8.1.270.0040.00423.99
8.1.260.0080.00026.35
8.1.250.0030.00528.09
8.1.240.0100.00022.42
8.1.230.0120.00020.91
8.1.220.0040.00418.77
8.1.210.0080.00318.79
8.1.200.0060.00317.35
8.1.190.0040.00417.43
8.1.180.0030.00718.10
8.1.170.0000.00718.79
8.1.160.0050.00318.79
8.1.150.0040.00418.57
8.1.140.0030.00517.26
8.1.130.0070.00017.70
8.1.120.0040.00417.44
8.1.110.0070.00417.28
8.1.100.0050.00317.38
8.1.90.0000.00717.40
8.1.80.0040.00417.43
8.1.70.0030.00717.26
8.1.60.0040.00417.54
8.1.50.0030.00517.52
8.1.40.0070.00017.55
8.1.30.0030.00617.50
8.1.20.0040.00417.59
8.1.10.0040.00417.48
8.1.00.0040.00417.44
8.0.300.0040.00419.96
8.0.290.0040.00416.58
8.0.280.0030.00318.36
8.0.270.0000.00716.76
8.0.260.0030.00316.73
8.0.250.0040.00416.98
8.0.240.0050.00316.86
8.0.230.0040.00416.94
8.0.220.0030.00316.81
8.0.210.0080.00016.71
8.0.200.0000.00916.93
8.0.190.0080.00416.89
8.0.180.0000.00716.74
8.0.170.0090.00016.86
8.0.160.0050.00216.79
8.0.150.0000.00816.74
8.0.140.0050.00616.77
8.0.130.0000.00613.26
8.0.120.0040.00416.76
8.0.110.0070.00416.71
8.0.100.0040.00416.89
8.0.90.0070.00016.86
8.0.80.0110.01116.88
8.0.70.0040.00416.87
8.0.60.0040.00416.83
8.0.50.0000.00716.71
8.0.30.0130.00817.18
8.0.20.0140.00517.22
8.0.10.0040.00416.90
8.0.00.0120.01216.65
7.4.330.0030.00314.71
7.4.320.0030.00316.54
7.4.300.0060.00016.51
7.4.290.0070.00016.64
7.4.280.0000.00916.36
7.4.270.0070.00016.53
7.4.260.0050.00013.28
7.4.250.0000.00716.39
7.4.240.0030.00316.51
7.4.230.0000.00816.60
7.4.220.0040.01316.61
7.4.210.0080.00616.54
7.4.200.0000.00716.34
7.4.190.0070.00016.68
7.4.160.0060.00916.30
7.4.150.0130.00317.07
7.4.140.0110.01017.14
7.4.130.0070.01016.59
7.4.120.0050.01416.38
7.4.110.0130.00316.73
7.4.100.0040.01416.52
7.4.90.0060.01216.59
7.4.80.0070.01018.80
7.4.70.0080.01116.41
7.4.60.0120.00616.57
7.4.50.0050.00016.13
7.4.40.0040.01222.27
7.4.30.0080.00816.44
7.4.00.0070.01115.16
7.3.330.0000.00613.08
7.3.320.0000.00513.34
7.3.310.0030.00316.19
7.3.300.0000.00716.21
7.3.290.0120.00916.29
7.3.280.0050.01316.29
7.3.270.0100.01417.07
7.3.260.0110.00718.24
7.3.250.0120.00916.25
7.3.240.0100.00716.29
7.3.230.0030.01316.57
7.3.210.0150.00316.47
7.3.200.0060.01219.39
7.3.190.0100.01016.60
7.3.180.0030.01216.49
7.3.170.0110.00816.56
7.3.160.0070.01016.49
7.3.120.0100.00314.58
7.3.10.0030.00616.36
7.3.00.0090.00316.75
7.2.330.0060.01116.58
7.2.320.0120.00616.74
7.2.310.0060.01016.91
7.2.300.0210.00016.40
7.2.290.0140.00316.55
7.2.130.0100.01016.78
7.2.120.0030.00916.52
7.2.110.0030.01016.50
7.2.100.0100.00316.64
7.2.90.0070.00716.51
7.2.80.0030.01016.50
7.2.70.0090.00616.97
7.2.60.0040.00816.71
7.2.50.0130.01316.91
7.2.40.0080.00817.12
7.2.30.0110.00716.61
7.2.20.0070.01016.73
7.2.10.0160.00816.69
7.2.00.0090.00917.99
7.1.250.0000.01115.45
7.1.200.0050.00415.84
7.1.100.0060.00618.09
7.1.70.0030.00317.09
7.1.60.0070.02019.40
7.1.50.0090.01216.65
7.1.00.0070.06022.54
7.0.200.0200.01014.89
7.0.140.0000.08022.11
7.0.120.0070.03022.04
7.0.60.0200.06019.88
7.0.50.0070.05717.88
7.0.40.0170.05719.96
7.0.30.0600.07020.07
7.0.20.0400.07020.10
7.0.10.0330.04320.33
7.0.00.0100.07320.09
5.6.280.0000.07721.12
5.6.210.0100.08320.52
5.6.200.0100.06718.25
5.6.190.0030.08720.65
5.6.180.0470.06720.57
5.6.170.0300.06320.55
5.6.160.0070.04020.47
5.6.150.0100.03318.12
5.6.140.0130.07318.16
5.6.130.0170.06718.17
5.6.120.0070.04321.02
5.6.110.0000.04321.12
5.6.100.0030.09021.03
5.6.90.0070.08321.00
5.6.80.0100.04720.39
5.6.70.4200.03720.43
5.5.350.0270.06020.39
5.5.340.0130.07018.05
5.5.330.0030.09020.43
5.5.320.0200.05320.28
5.5.310.0230.05720.27
5.5.300.0100.06017.95
5.5.290.0200.06717.93
5.5.280.0070.08720.82
5.5.270.0070.05720.80
5.5.260.0070.03720.67
5.5.250.0030.05020.52
5.5.240.0100.03320.16
5.4.450.0200.06019.18
5.4.440.0070.08319.56
5.4.430.0070.04719.24
5.4.420.0030.05319.54
5.4.410.0070.05019.17
5.4.400.0030.06319.22
5.4.390.0000.06019.16
5.4.380.0100.04718.87
5.4.370.0070.07019.07
5.4.360.0130.04719.25
5.4.350.0000.08019.15
5.4.340.0100.06319.11
5.4.320.0000.05318.85
5.4.310.0070.03718.92
5.4.300.0100.07319.25
5.4.290.0070.05019.24
5.4.280.0070.04319.23
5.4.270.0100.03319.11
5.4.260.0030.04019.24
5.4.250.0070.03719.11
5.4.240.0070.07319.20
5.4.230.0170.06319.14
5.4.220.0100.07719.14
5.4.210.0030.06019.11
5.4.200.0170.04319.14
5.4.190.0000.08319.14
5.4.180.0030.04019.07
5.4.170.0030.04719.13
5.4.160.0100.07319.14
5.4.150.0070.05018.96
5.4.140.0000.04016.35
5.4.130.0030.04016.34
5.4.120.0070.07716.30
5.4.110.0070.03316.34
5.4.100.0000.04316.67
5.4.90.0070.03316.47
5.4.80.0000.08016.45
5.4.70.0100.07016.37
5.4.60.0130.06016.52
5.4.50.0000.04016.27
5.4.40.0070.06716.38
5.4.30.0070.05316.38
5.4.20.0070.04316.43
5.4.10.0030.04316.64
5.4.00.0000.04015.94
5.3.290.0100.05014.69
5.3.280.0070.04314.63
5.3.270.0070.05014.68
5.3.260.0070.03714.66
5.3.250.0070.07714.64
5.3.240.0070.04014.66
5.3.230.0130.05714.67
5.3.220.0070.07714.73
5.3.210.0000.07014.48
5.3.200.0130.06714.59
5.3.190.0000.04014.59
5.3.180.0070.04314.48
5.3.170.0070.04014.62
5.3.160.0170.07314.57
5.3.150.0070.06014.64
5.3.140.0070.03714.57
5.3.130.0100.07714.60
5.3.120.0000.05714.58
5.3.110.0100.07714.59
5.3.100.0030.05013.96
5.3.90.0000.04014.03
5.3.80.0100.07714.03
5.3.70.0000.07714.08
5.3.60.0000.06014.00
5.3.50.0030.06713.92
5.3.40.0000.06314.01
5.3.30.0030.07714.07
5.3.20.0070.07713.69
5.3.10.0030.04013.73
5.3.00.0070.04313.57
5.2.170.0030.07011.04
5.2.160.0070.03011.17
5.2.150.0000.06011.20
5.2.140.0070.06311.30
5.2.130.0130.02311.14
5.2.120.0030.06311.16
5.2.110.0030.03011.12
5.2.100.0000.03311.07
5.2.90.0030.02711.11
5.2.80.0000.03311.14
5.2.70.0030.05711.06
5.2.60.0070.04711.02
5.2.50.0070.06011.05
5.2.40.0070.05011.07
5.2.30.0070.03010.97
5.2.20.0030.02710.85
5.2.10.0070.06010.82
5.2.00.0070.06010.87
5.1.60.0000.0579.96
5.1.50.0070.03710.16
5.1.40.0000.03310.03
5.1.30.0000.05010.30
5.1.20.0070.05710.28
5.1.10.0030.05310.05
5.1.00.0070.05010.10
5.0.50.0000.0238.61
5.0.40.0000.0438.34
5.0.30.0170.0438.20
5.0.20.0030.0378.18
5.0.10.0030.0538.22
5.0.00.0070.0678.22
4.4.90.0030.0208.07
4.4.80.0000.0208.07
4.4.70.0000.0378.07
4.4.60.0030.0378.07
4.4.50.0030.0208.07
4.4.40.0000.0378.07
4.4.30.0000.0278.07
4.4.20.0000.0308.07
4.4.10.0030.0308.07
4.4.00.0000.0538.07
4.3.110.0070.0338.07
4.3.100.0000.0308.07
4.3.90.0000.0278.07
4.3.80.0000.0578.07
4.3.70.0000.0338.07
4.3.60.0070.0338.07
4.3.50.0030.0338.07
4.3.40.0030.0538.07
4.3.30.0030.0278.07
4.3.20.0000.0308.07
4.3.10.0000.0238.07
4.3.00.0000.0208.07

preferences:
34.33 ms | 401 KiB | 5 Q