3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { } $a = new Foo; $class = 'Foo'; $b = new $class; $class = ucfirst('foo'); $c = new $class;

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.4.130.0090.01117.64
8.4.120.0120.00820.61
8.4.110.0070.01322.30
8.4.100.0120.00917.46
8.4.90.0060.00317.85
8.4.80.0120.00817.75
8.4.70.0040.00417.71
8.4.60.0070.00920.27
8.4.50.0050.00418.80
8.4.40.0110.01117.62
8.4.30.0000.00819.20
8.4.20.0060.01318.61
8.4.10.0040.00717.44
8.3.260.0070.00916.41
8.3.250.0150.00418.98
8.3.240.0120.00716.34
8.3.230.0110.00816.54
8.3.220.0100.00916.69
8.3.210.0160.00716.66
8.3.200.0050.00316.43
8.3.190.0080.01216.93
8.3.180.0110.00716.45
8.3.170.0110.00717.16
8.3.160.0070.01116.81
8.3.150.0120.00618.49
8.3.140.0030.00518.79
8.3.130.0080.00018.16
8.3.120.0030.00618.98
8.3.110.0000.00920.94
8.3.100.0040.00424.06
8.3.90.0070.01126.77
8.3.80.0030.00718.43
8.3.70.0120.00616.63
8.3.60.0060.00916.22
8.3.50.0070.01222.04
8.3.40.0120.00318.81
8.3.30.0030.01118.65
8.3.20.0040.00418.62
8.3.10.0000.00821.78
8.3.00.0050.00318.89
8.2.290.0050.00320.36
8.2.280.0090.00918.54
8.2.270.0120.00617.14
8.2.260.0000.01618.20
8.2.250.0120.00616.86
8.2.240.0100.00617.13
8.2.230.0080.00022.58
8.2.220.0000.01137.54
8.2.210.0110.00726.77
8.2.200.0000.00916.75
8.2.190.0170.00316.63
8.2.180.0070.00716.63
8.2.170.0140.00722.96
8.2.160.0070.00720.43
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00419.23
8.2.110.0030.00621.14
8.2.100.0080.00317.72
8.2.90.0040.00417.63
8.2.80.0040.00417.97
8.2.70.0060.00317.80
8.2.60.0050.00317.91
8.2.50.0060.00418.10
8.2.40.0000.00720.56
8.2.30.0000.00719.07
8.2.20.0000.00717.89
8.2.10.0030.00518.09
8.2.00.0070.00017.54
8.1.330.0100.00016.11
8.1.320.0080.01015.85
8.1.310.0100.00318.17
8.1.300.0100.00718.30
8.1.290.0030.00630.84
8.1.280.0040.01125.92
8.1.270.0070.00022.14
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0070.00322.05
8.1.230.0040.00719.09
8.1.220.0000.00817.74
8.1.210.0090.00018.77
8.1.200.0000.00917.23
8.1.190.0050.00317.10
8.1.180.0080.00018.10
8.1.170.0070.00018.87
8.1.160.0000.00718.85
8.1.150.0050.00220.24
8.1.140.0000.00719.50
8.1.130.0000.00817.82
8.1.120.0050.00317.30
8.1.110.0000.00817.40
8.1.100.0000.00817.39
8.1.90.0000.00717.28
8.1.80.0040.00417.36
8.1.70.0000.00717.29
8.1.60.0080.00017.41
8.1.50.0000.00817.34
8.1.40.0050.00317.48
8.1.30.0000.00817.60
8.1.20.0000.00717.49
8.1.10.0040.00417.58
8.1.00.0000.00817.50
8.0.300.0070.00019.73
8.0.290.0000.00816.58
8.0.280.0000.00618.24
8.0.270.0070.00017.10
8.0.260.0050.00517.13
8.0.250.0080.00016.86
8.0.240.0000.00816.89
8.0.230.0040.00416.85
8.0.220.0050.00316.86
8.0.210.0030.00316.73
8.0.200.0000.00716.74
8.0.190.0060.00316.84
8.0.180.0050.00216.76
8.0.170.0030.00616.75
8.0.160.0110.00016.81
8.0.150.0000.00716.76
8.0.140.0040.00416.75
8.0.130.0000.00613.33
8.0.120.0050.00316.69
8.0.110.0050.00316.60
8.0.100.0040.00416.78
8.0.90.0030.00316.78
8.0.80.0150.00316.82
8.0.70.0070.00016.87
8.0.60.0000.00716.67
8.0.50.0050.00216.83
8.0.30.0080.01016.93
8.0.20.0100.00817.40
8.0.10.0030.00516.83
8.0.00.0060.01216.63
7.4.330.0020.00215.55
7.4.320.0060.00016.43
7.4.300.0000.00616.34
7.4.290.0030.00316.54
7.4.280.0050.00316.47
7.4.270.0000.00616.52
7.4.260.0000.00716.44
7.4.250.0040.00416.39
7.4.240.0000.00716.32
7.4.230.0000.00716.61
7.4.220.0040.00416.32
7.4.210.0130.00716.57
7.4.200.0000.00716.64
7.4.160.0080.01016.51
7.4.150.0090.00917.40
7.4.140.0070.01117.86
7.4.130.0110.00816.27
7.4.120.0110.00716.40
7.4.110.0100.00716.41
7.4.100.0030.01416.45
7.4.90.0100.00716.46
7.4.80.0090.00819.39
7.4.70.0080.00816.41
7.4.60.0090.01316.36
7.4.50.0140.00316.60
7.4.40.0040.01216.49
7.4.30.0090.00616.42
7.4.00.0000.01614.57
7.3.330.0000.00513.23
7.3.320.0000.00513.10
7.3.310.0000.00616.23
7.3.300.0070.00016.26
7.3.290.0090.00816.21
7.3.280.0100.00916.23
7.3.270.0150.00417.40
7.3.260.0140.00416.27
7.3.250.0100.00916.37
7.3.240.0160.00416.29
7.3.230.0110.00716.39
7.3.210.0070.01016.22
7.3.200.0100.01116.16
7.3.190.0070.01416.59
7.3.180.0130.00316.52
7.3.170.0100.00716.21
7.3.160.0120.00916.28
7.2.330.0100.00616.58
7.2.320.0070.01016.21
7.2.310.0130.00316.57
7.2.300.0150.00316.55
7.2.290.0090.01316.57
7.2.60.0040.00416.96
7.1.200.0090.00315.50
7.1.70.0050.00517.15
7.1.60.0100.01017.20
7.1.00.0120.07722.43
7.0.200.0000.00816.34
7.0.130.0230.07321.97
7.0.120.0030.07022.13
7.0.110.0100.08022.20
7.0.100.0100.08322.14
7.0.90.0130.06022.12
7.0.80.0100.07721.97
7.0.70.0200.05722.13
7.0.60.0130.08021.89
7.0.50.0370.06722.01
7.0.40.0100.06321.95
7.0.30.0170.06322.16
7.0.20.0130.07322.00
7.0.10.0130.07322.11
7.0.00.0030.08322.00
5.6.280.0170.08021.08
5.6.270.0200.05721.11
5.6.260.0230.06720.89
5.6.250.0130.05720.80
5.6.240.0130.08721.03
5.6.230.0070.09321.12
5.6.220.0070.08320.79
5.6.210.0130.07720.92
5.6.200.0100.06321.03
5.6.190.0130.08020.88
5.6.180.0200.08020.82
5.6.170.0030.07021.00
5.6.160.0200.06720.92
5.6.150.0200.07020.82
5.6.140.0200.06021.04
5.6.130.0100.05721.02
5.6.120.0030.06721.07
5.6.110.0170.07720.85
5.6.100.0100.06320.72
5.6.90.0170.06320.86
5.6.80.0100.07020.44
5.6.70.0070.05720.29
5.6.60.0030.06320.40
5.6.50.0100.07320.25
5.6.40.0200.05320.40
5.6.30.0130.06020.41
5.6.20.0200.05320.38
5.6.10.0100.06020.40
5.6.00.0130.06020.15

preferences:
128.88 ms | 403 KiB | 5 Q