3v4l.org

run code in 300+ PHP versions simultaneously
<?php class XXX { function yo(){ echo 'yo!'; } } class Test { public $class = 'XXX'; function __construct(){ $class = $this->class; $xxx = new $this->class(); $xxx->yo(); } } $test = new 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.70.0100.01016.38
8.3.60.0110.01116.75
8.3.50.0120.00521.99
8.3.40.0070.01518.78
8.3.30.0070.00718.92
8.3.20.0080.00020.16
8.3.10.0070.00023.48
8.3.00.0040.00419.35
8.2.190.0110.00418.38
8.2.180.0110.01118.39
8.2.170.0100.01022.96
8.2.160.0030.01020.38
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0160.00326.16
8.2.120.0070.00022.11
8.2.110.0040.00722.08
8.2.100.0120.00017.72
8.2.90.0060.00319.00
8.2.80.0040.00418.03
8.2.70.0000.00817.63
8.2.60.0080.00017.93
8.2.50.0090.00018.07
8.2.40.0040.00418.16
8.2.30.0040.00417.87
8.2.20.0040.00417.52
8.2.10.0040.00417.94
8.2.00.0040.00417.66
8.1.280.0150.00625.92
8.1.270.0100.00723.96
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0000.00923.92
8.1.230.0000.01119.16
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0100.00017.23
8.1.190.0000.00917.30
8.1.180.0040.00418.10
8.1.170.0030.00518.53
8.1.160.0000.00721.89
8.1.150.0030.00618.52
8.1.140.0000.00717.27
8.1.130.0030.00317.81
8.1.120.0000.00817.36
8.1.110.0070.00317.29
8.1.100.0000.00717.30
8.1.90.0000.00817.35
8.1.80.0030.00317.38
8.1.70.0070.00017.30
8.1.60.0080.00017.53
8.1.50.0040.00417.41
8.1.40.0040.00417.44
8.1.30.0000.00917.68
8.1.20.0000.00717.66
8.1.10.0000.00817.54
8.1.00.0040.00417.47
8.0.300.0000.00718.77
8.0.290.0070.00017.16
8.0.280.0000.00718.33
8.0.270.0000.00717.31
8.0.260.0030.00316.73
8.0.250.0030.00316.91
8.0.240.0070.00016.82
8.0.230.0000.00716.88
8.0.220.0000.00716.76
8.0.210.0000.00716.78
8.0.200.0060.00016.89
8.0.190.0040.00416.91
8.0.180.0000.00716.90
8.0.170.0070.00016.86
8.0.160.0000.00716.93
8.0.150.0000.00716.83
8.0.140.0030.00516.82
8.0.130.0000.00613.21
8.0.120.0080.00016.81
8.0.110.0000.00816.79
8.0.100.0000.00716.67
8.0.90.0000.00716.87
8.0.80.0090.00616.88
8.0.70.0050.00216.89
8.0.60.0000.00816.85
8.0.50.0080.00016.86
8.0.30.0130.00917.23
8.0.20.0110.00817.40
8.0.10.0040.00416.86
8.0.00.0080.01016.68
7.4.330.0060.00015.00
7.4.320.0000.00616.44
7.4.300.0000.00716.40
7.4.290.0030.00316.64
7.4.280.0070.00016.40
7.4.270.0030.00316.43
7.4.260.0040.00416.58
7.4.250.0050.00316.45
7.4.240.0000.00716.54
7.4.230.0000.00816.60
7.4.220.0070.01016.42
7.4.210.0030.01116.56
7.4.200.0030.00316.40
7.4.190.0000.00716.72
7.4.160.0130.00316.35
7.4.150.0060.01117.40
7.4.140.0070.01017.86
7.4.130.0070.01316.39
7.4.120.0120.00516.52
7.4.110.0160.00616.59
7.4.100.0140.00316.61
7.4.90.0030.01316.38
7.4.80.0100.00719.39
7.4.70.0030.01316.43
7.4.60.0100.00716.62
7.4.50.0000.00416.27
7.4.40.0120.00222.77
7.4.30.0080.00816.53
7.4.00.0100.00715.21
7.3.330.0050.00013.21
7.3.320.0020.00613.16
7.3.310.0030.00316.09
7.3.300.0000.00716.15
7.3.290.0110.00416.26
7.3.280.0090.00916.26
7.3.270.0030.01417.40
7.3.260.0080.00816.22
7.3.250.0070.01316.36
7.3.240.0130.00916.26
7.3.230.0130.00916.39
7.3.210.0170.02116.51
7.3.200.0100.01319.39
7.3.190.0150.00316.29
7.3.180.0030.01316.12
7.3.170.0020.01316.27
7.3.160.0120.00416.21
7.3.120.0110.00414.93
7.2.330.0100.00716.31
7.2.320.0120.00316.43
7.2.310.0040.01316.53
7.2.300.0080.00816.84
7.2.290.0130.01016.85
7.1.70.0070.00417.00
7.1.60.0140.01119.31
7.1.50.0070.00316.83
7.1.00.0000.08022.44
7.0.200.0030.00716.56
7.0.140.0100.06722.04
7.0.110.0400.04020.08
7.0.100.0130.07320.04
7.0.90.0500.08019.88
7.0.80.0270.05319.91
7.0.70.0130.09019.84
7.0.60.0100.05019.99
7.0.50.0530.04320.00
7.0.40.0130.07019.64
7.0.30.0100.04019.78
7.0.20.0030.04019.78
7.0.10.0070.06719.74
7.0.00.0100.07019.88
5.6.280.0070.07020.90
5.6.260.0000.04720.51
5.6.250.0130.05020.70
5.6.240.0030.06320.48
5.6.230.0100.05020.57
5.6.220.0070.06320.65
5.6.210.0070.07320.62
5.6.200.0070.05320.72
5.6.190.0070.04320.71
5.6.180.0000.06020.61
5.6.170.0070.03720.56
5.6.160.0170.07320.57
5.6.150.0100.06320.66
5.6.140.0130.03020.62
5.6.130.0070.03720.59
5.6.120.0030.05020.82
5.6.110.0070.08320.51
5.6.100.0100.08320.64
5.6.90.0030.04020.69
5.6.80.0130.02719.96
5.6.70.0070.03720.00
5.6.60.0030.05019.84
5.6.50.0030.07720.07
5.6.40.0000.04319.93
5.6.30.0100.04719.97
5.6.20.0030.06719.93
5.6.10.0100.06320.04
5.6.00.0000.06319.97
5.5.380.0100.03317.52
5.5.370.0030.07017.59
5.5.360.0130.07017.54
5.5.350.0100.03717.68
5.5.340.0100.07718.09
5.5.330.0070.03318.13
5.5.320.0070.07718.10
5.5.310.0030.04017.83
5.5.300.0070.07017.83
5.5.290.0000.04018.22
5.5.280.0030.06717.93
5.5.270.0130.02718.08
5.5.260.0000.04318.21
5.5.250.0100.07317.93
5.5.240.0030.08017.34
5.5.230.0030.05717.29
5.5.220.0070.05017.63
5.5.210.0070.03717.31
5.5.200.0030.05717.26
5.5.190.0030.04017.28
5.5.180.0130.03717.44
5.5.160.0070.03717.48
5.5.150.0030.05717.39
5.5.140.0030.06017.46
5.5.130.0030.04017.30
5.5.120.0070.06017.60
5.5.110.0030.03317.43
5.5.100.0100.03017.36
5.5.90.0100.04717.20
5.5.80.0030.03717.16
5.5.70.0070.07317.37
5.5.60.0070.04017.47
5.5.50.0030.03317.38
5.5.40.0000.04717.49
5.5.30.0070.06317.46
5.5.20.0070.03317.33
5.5.10.0100.06717.34
5.5.00.0070.07717.16
5.4.450.0100.03319.57
5.4.440.0030.04319.33
5.4.430.0100.05719.33
5.4.420.0070.06019.41
5.4.410.0070.07019.38
5.4.400.0030.03719.02
5.4.390.0000.04719.02
5.4.380.0030.04719.18
5.4.370.0070.05019.02
5.4.360.0030.03719.09
5.4.350.0100.03019.31
5.4.340.0030.04019.14
5.4.320.0000.04019.09
5.4.310.0130.06319.18
5.4.300.0130.03019.16
5.4.290.0030.05718.95
5.4.280.0070.05019.01
5.4.270.0070.05719.04
5.4.260.0030.03719.18
5.4.250.0070.03719.10
5.4.240.0030.04318.94
5.4.230.0000.04019.23
5.4.220.0000.04719.33
5.4.210.0000.06319.01
5.4.200.0000.03719.16
5.4.190.0200.05018.98
5.4.180.0030.07019.00
5.4.170.0000.04019.23
5.4.160.0100.07018.93
5.4.150.0070.06018.98
5.4.140.0030.03316.54
5.4.130.0070.03316.44
5.4.120.0000.08016.37
5.4.110.0030.03716.48
5.4.100.0170.08016.47
5.4.90.0100.04316.52
5.4.80.0000.06016.51
5.4.70.0030.04016.45
5.4.60.0200.03716.44
5.4.50.0030.04016.52
5.4.40.0030.07016.53
5.4.30.0070.05316.23
5.4.20.0100.07016.28
5.4.10.0070.06316.49
5.4.00.0100.05715.78
5.3.290.0030.06014.90
5.3.280.0100.02714.68
5.3.270.0030.07314.85
5.3.260.0000.07314.69
5.3.250.0000.04014.83
5.3.240.0100.05014.69
5.3.230.0030.06714.61
5.3.220.0100.04714.57
5.3.210.0130.06314.80
5.3.200.0030.06014.79
5.3.190.0030.06714.54
5.3.180.0030.04314.42
5.3.170.0130.06714.56
5.3.160.0030.05714.58
5.3.150.0030.04014.65
5.3.140.0100.04714.51
5.3.130.0030.04014.42
5.3.120.0030.06714.41
5.3.110.0100.07314.40
5.3.100.0070.05314.05
5.3.90.0100.06314.26
5.3.80.0030.04313.88
5.3.70.0030.03714.25
5.3.60.0000.04314.14
5.3.50.0030.04313.98
5.3.40.0070.04013.96
5.3.30.0030.07013.77
5.3.20.0130.06313.72
5.3.10.0070.05313.70
5.3.00.0030.04713.64
5.2.170.0030.04011.88
5.2.160.0100.03011.88
5.2.150.0100.03311.88
5.2.140.0030.05011.88
5.2.130.0000.04711.88
5.2.120.0000.04711.88
5.2.110.0030.06011.88
5.2.100.0000.05711.88
5.2.90.0030.05011.88
5.2.80.0070.06011.88
5.2.70.0030.05311.88
5.2.60.0000.04711.88
5.2.50.0030.05311.88
5.2.40.0100.02011.88
5.2.30.0100.05711.88
5.2.20.0130.02711.88
5.2.10.0000.05311.88
5.2.00.0070.06311.88
5.1.60.0100.04311.88
5.1.50.0030.05011.88
5.1.40.0030.03711.88
5.1.30.0070.02711.88
5.1.20.0030.05311.88
5.1.10.0000.02711.88
5.1.00.0100.05011.88
5.0.50.0030.02011.88
5.0.40.0000.02011.88
5.0.30.0030.03011.88
5.0.20.0030.02311.88
5.0.10.0030.02011.88
5.0.00.0030.03011.88
4.4.90.0000.02311.88
4.4.80.0000.01311.88
4.4.70.0070.02711.88
4.4.60.0030.02011.88
4.4.50.0000.03311.88
4.4.40.0030.04711.88
4.4.30.0070.02711.88
4.4.20.0030.01311.88
4.4.10.0030.03711.88
4.4.00.0030.03011.88
4.3.110.0000.01711.88
4.3.100.0000.01711.88
4.3.90.0030.01311.88
4.3.80.0000.02311.88
4.3.70.0000.03011.88
4.3.60.0000.02711.88
4.3.50.0030.01711.88
4.3.40.0000.02711.88
4.3.30.0030.02011.88
4.3.20.0030.01311.88
4.3.10.0030.01311.88
4.3.00.0030.02311.88

preferences:
37.26 ms | 401 KiB | 5 Q