3v4l.org

run code in 300+ PHP versions simultaneously
<?php class User{ public $username; public $email; private $parse = 'phpinfo'; public $canonicalname; function __construct($username,$email){ $this->username = $username; $this->email = $email; //check username $parse = $this->parse; $this->canonicalname = $parse($this->username); } public function __wakeup() { //make sure object is safe to use $parse = $this->parse; $this->canonicalname = $parse($this->username); } } $user = new User('hugo', 'email'); var_dump(serialize($user));

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.70.0060.01218.43
8.3.60.0190.00018.66
8.3.50.0080.01321.93
8.3.40.0070.01018.92
8.3.30.0120.00319.09
8.3.20.0030.00520.30
8.3.10.0040.00421.96
8.3.00.0040.00422.29
8.2.180.0100.01016.63
8.2.170.0100.00722.96
8.2.160.0070.00720.80
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00419.36
8.2.110.0030.00621.03
8.2.100.0040.00817.55
8.2.90.0040.00417.91
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0000.00817.93
8.2.50.0000.00818.07
8.2.40.0050.00317.92
8.2.30.0000.00817.93
8.2.20.0040.00417.60
8.2.10.0030.00617.69
8.2.00.0040.00417.70
8.1.280.0140.00725.92
8.1.270.0090.00021.97
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0080.00421.84
8.1.230.0060.00620.85
8.1.220.0040.00417.74
8.1.210.0050.00318.82
8.1.200.0050.00517.36
8.1.190.0020.00517.53
8.1.180.0080.00018.10
8.1.170.0040.00418.49
8.1.160.0030.00621.91
8.1.150.0040.00418.45
8.1.140.0040.00417.45
8.1.130.0000.00717.74
8.1.120.0030.00317.37
8.1.110.0000.00817.41
8.1.100.0040.00417.45
8.1.90.0040.00417.46
8.1.80.0030.00317.30
8.1.70.0030.00317.35
8.1.60.0040.00417.60
8.1.50.0000.00817.54
8.1.40.0000.00817.54
8.1.30.0040.00417.55
8.1.20.0000.00817.66
8.1.10.0000.00817.54
8.1.00.0040.00417.37
8.0.300.0000.00720.02
8.0.290.0030.00517.05
8.0.280.0000.00718.39
8.0.270.0030.00317.15
8.0.260.0060.00016.73
8.0.250.0000.00716.96
8.0.240.0080.00016.94
8.0.230.0030.00316.95
8.0.220.0000.00616.79
8.0.210.0030.00316.90
8.0.200.0030.00317.02
8.0.190.0050.00216.82
8.0.180.0000.00716.88
8.0.170.0000.00716.82
8.0.160.0000.00716.95
8.0.150.0030.00316.89
8.0.140.0070.00016.83
8.0.130.0050.00013.32
8.0.120.0020.00516.84
8.0.110.0040.00416.88
8.0.100.0040.00416.91
8.0.90.0040.00416.91
8.0.80.0060.01016.96
8.0.70.0040.00416.88
8.0.60.0000.00816.71
8.0.50.0000.00716.95
8.0.30.0080.01116.96
8.0.20.0110.01117.40
8.0.10.0000.00716.91
8.0.00.0080.01416.65
7.4.330.0000.00615.00
7.4.320.0030.00316.52
7.4.300.0060.00016.58
7.4.290.0070.00016.50
7.4.280.0070.00016.48
7.4.270.0040.00716.59
7.4.260.0100.00016.51
7.4.250.0000.00816.46
7.4.240.0030.00516.59
7.4.230.0070.00016.39
7.4.220.0100.00716.49
7.4.210.0080.00916.50
7.4.200.0000.00716.59
7.4.190.0040.00416.75
7.4.160.0040.01216.66
7.4.150.0060.01317.40
7.4.140.0140.00717.86
7.4.130.0100.00816.61
7.4.120.0130.00816.46
7.4.110.0120.00916.55
7.4.100.0130.00616.67
7.4.90.0110.00616.46
7.4.80.0130.01019.39
7.4.70.0090.00916.59
7.4.60.0150.00316.54
7.4.50.0000.00816.59
7.4.40.0100.00322.77
7.4.30.0090.00616.65
7.4.00.0070.01114.99
7.3.330.0080.00013.19
7.3.320.0000.00613.14
7.3.310.0000.00816.27
7.3.300.0000.00716.38
7.3.290.0060.00916.41
7.3.280.0080.01016.33
7.3.270.0070.01017.40
7.3.260.0130.00316.48
7.3.250.0080.01416.40
7.3.240.0130.00316.37
7.3.230.0150.00716.52
7.3.210.0130.00316.41
7.3.200.0040.01619.39
7.3.190.0060.01216.43
7.3.180.0120.00316.44
7.3.170.0100.00716.42
7.3.160.0170.00016.55
7.3.120.0140.00314.95
7.3.110.0120.00314.61
7.3.100.0000.01614.57
7.3.90.0140.00314.68
7.3.80.0060.00914.85
7.3.70.0060.00914.66
7.3.60.0030.01014.67
7.3.50.0000.01215.02
7.3.40.0090.00314.64
7.3.30.0090.00614.72
7.3.20.0070.00716.33
7.3.10.0000.01216.75
7.3.00.0070.00716.72
7.2.330.0070.01516.69
7.2.320.0110.01216.68
7.2.310.0130.00316.62
7.2.300.0080.00816.79
7.2.290.0100.00716.73
7.2.240.0040.01515.03
7.2.230.0060.01214.87
7.2.220.0000.01815.27
7.2.210.0090.00614.77
7.2.200.0070.00715.13
7.2.190.0090.00614.84
7.2.180.0070.00715.02
7.2.170.0060.00914.92
7.2.160.0040.01214.84
7.2.150.0060.00916.78
7.2.140.0070.00716.86
7.2.130.0060.00616.76
7.2.120.0060.00616.97
7.2.110.0070.00716.92
7.2.100.0060.01216.77
7.2.90.0070.01117.11
7.2.80.0070.01116.59
7.2.70.0100.00016.98
7.2.60.0040.00817.03
7.2.50.0070.00716.74
7.2.40.0070.00317.04
7.2.30.0030.01016.92
7.2.20.0070.00717.04
7.2.10.0110.00316.99
7.2.00.0070.00818.10
7.1.330.0040.01115.71
7.1.320.0110.00615.75
7.1.310.0060.00615.93
7.1.300.0070.00715.75
7.1.290.0030.01215.79
7.1.280.0070.00715.82
7.1.270.0030.01215.81
7.1.260.0060.00915.85
7.1.250.0100.00615.65
7.1.100.0030.00918.26
7.1.70.0050.00217.14
7.1.60.0070.01819.82
7.1.50.0130.01016.80
7.1.00.0030.07722.36
7.0.200.0060.00316.55
7.0.140.0070.07021.98
7.0.60.0030.08719.83
7.0.50.0070.07717.84
7.0.40.0070.05020.04
7.0.30.0300.05720.13
7.0.20.0270.05720.19
7.0.10.0330.07020.19
7.0.00.0000.06020.25
5.6.280.0030.09021.00
5.6.210.0070.05720.65
5.6.200.0070.08318.18
5.6.190.0070.04320.50
5.6.180.3430.04020.50
5.6.170.0300.06320.40
5.6.160.0100.06720.54
5.6.150.0170.04718.16
5.6.140.0070.07318.15
5.6.130.0030.05018.18
5.6.120.0070.06721.01
5.6.110.0070.08320.96
5.6.100.0130.07720.99
5.6.90.0070.08021.10
5.6.80.0000.04320.41
5.6.70.4230.03720.28
5.5.350.0070.03720.53
5.5.340.0030.03717.99
5.5.330.0070.08720.13
5.5.320.0230.07020.37
5.5.310.0370.06720.33
5.5.300.0030.08317.98
5.5.290.0070.04018.04
5.5.280.0030.04720.74
5.5.270.0100.03720.73
5.5.260.0070.06320.89
5.5.250.0100.07020.80
5.5.240.0070.08020.04
5.4.450.0100.06719.55
5.4.440.0200.05719.38
5.4.430.0170.05019.38
5.4.420.0230.04019.63
5.4.410.0200.04319.28
5.4.400.0800.00018.67
5.4.390.0800.00018.75
5.4.380.0270.05318.79
5.4.370.0330.04718.50
5.4.360.0130.06718.50
5.4.350.0270.05718.70
5.4.340.0300.05718.73
5.4.320.0120.04712.51
5.4.310.0070.03712.50
5.4.300.0080.05212.50
5.4.290.0060.04012.50
5.4.280.0080.03312.40
5.4.270.0100.05318.76
5.4.260.0200.04719.02
5.4.250.0130.07019.00
5.4.240.0170.04718.74
5.4.230.0070.08018.99
5.4.220.0170.06018.79
5.4.210.0170.07018.98
5.4.200.0170.05018.94
5.4.190.0170.05018.92
5.4.180.0230.05318.94
5.4.170.0170.05318.76
5.4.160.0070.05318.99
5.4.150.0170.05019.01
5.4.140.0070.05316.60
5.4.130.0170.06316.55
5.4.120.0200.04716.38
5.4.110.0070.05316.36
5.4.100.0030.05016.27
5.4.90.0130.04316.44
5.4.80.0170.06316.61
5.4.70.0100.04716.38
5.4.60.0100.04716.53
5.4.50.0070.05016.59
5.4.40.0100.06316.45
5.4.30.0070.07016.43
5.4.20.0030.07316.59
5.4.10.0070.05016.30
5.4.00.0070.05715.93
5.3.290.0100.03812.80
5.3.280.0070.06014.59
5.3.270.0200.06314.67
5.3.260.0070.06314.52
5.3.250.0070.05714.77
5.3.240.0100.05014.70
5.3.230.0100.05314.69
5.3.220.0070.05314.66
5.3.210.0230.05714.79
5.3.200.0070.05014.79
5.3.190.0070.05314.64
5.3.180.0130.04314.64
5.3.170.0100.05014.66
5.3.160.0130.04314.59
5.3.150.0100.05014.66
5.3.140.0100.05014.63
5.3.130.0030.05714.66
5.3.120.0030.05714.57
5.3.110.0170.04714.54
5.3.100.0100.06314.04
5.3.90.0070.05714.21
5.3.80.0130.05314.13
5.3.70.0030.05314.01
5.3.60.0100.04714.23
5.3.50.0100.06714.04
5.3.40.0170.05713.98
5.3.30.0170.04014.00
5.3.20.0130.04013.80
5.3.10.0070.04713.75
5.3.00.0030.05713.82
5.2.170.0070.04711.11
5.2.160.0030.04011.11
5.2.150.0070.04311.25
5.2.140.0030.04311.23
5.2.130.0100.04011.33
5.2.120.0070.04011.09
5.2.110.0130.04710.94
5.2.100.0100.05311.26
5.2.90.0070.05311.00
5.2.80.0030.04311.05
5.2.70.0030.04711.10
5.2.60.0030.04710.89
5.2.50.0070.05310.93
5.2.40.0070.04710.99
5.2.30.0170.05311.06
5.2.20.0000.04710.95
5.2.10.0030.04010.95
5.2.00.0070.03710.82
5.1.60.0070.03710.25
5.1.50.0000.05310.07
5.1.40.0130.03010.22
5.1.30.0070.04010.43
5.1.20.0070.03710.46
5.1.10.0100.04010.16
5.1.00.0100.03010.13
5.0.50.0070.0308.55
5.0.40.0030.0308.57
5.0.30.0070.0478.20
5.0.20.0100.0308.17
5.0.10.0070.0238.14
5.0.00.0030.0478.13
4.4.90.0030.0237.47
4.4.80.0000.0307.47
4.4.70.0070.0177.47
4.4.60.0030.0207.47
4.4.50.0030.0237.47
4.4.40.0070.0437.47
4.4.30.0030.0277.47
4.4.20.0030.0207.47
4.4.10.0030.0207.47
4.4.00.0000.0407.47
4.3.110.0000.0337.47
4.3.100.0000.0337.47
4.3.90.0100.0207.47
4.3.80.0070.0377.47
4.3.70.0000.0237.47
4.3.60.0030.0207.47
4.3.50.0030.0207.47
4.3.40.0070.0437.47
4.3.30.0000.0237.47
4.3.20.0030.0237.47
4.3.10.0030.0307.47
4.3.00.0100.0237.74

preferences:
39.21 ms | 401 KiB | 5 Q