3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo {} class_alias('foo', 'fooAlias'); function test(fooAlias $a) { echo 'works'; } $t = new foo; test($t);

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.0110.00416.38
8.3.50.0150.00622.92
8.3.40.0070.00718.64
8.3.30.0100.00319.18
8.3.20.0040.00420.04
8.3.10.0000.00823.56
8.3.00.0080.00019.25
8.2.180.0150.00418.51
8.2.170.0100.01022.96
8.2.160.0090.00620.47
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00726.16
8.2.120.0040.00420.96
8.2.110.0100.00020.16
8.2.100.0040.00817.91
8.2.90.0030.00518.16
8.2.80.0040.00417.97
8.2.70.0090.00017.63
8.2.60.0030.00618.04
8.2.50.0040.00418.07
8.2.40.0000.00818.22
8.2.30.0000.00718.04
8.2.20.0040.00417.61
8.2.10.0000.00817.89
8.2.00.0040.00417.67
8.1.280.0160.00025.92
8.1.270.0050.00523.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.14
8.1.230.0040.00821.03
8.1.220.0050.00317.74
8.1.210.0090.00018.77
8.1.200.0080.00317.10
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0040.00418.72
8.1.160.0000.00821.99
8.1.150.0060.00318.82
8.1.140.0070.00017.43
8.1.130.0030.00317.82
8.1.120.0000.00717.26
8.1.110.0050.00317.46
8.1.100.0040.00417.42
8.1.90.0030.00517.41
8.1.80.0040.00417.46
8.1.70.0070.00017.37
8.1.60.0000.00817.53
8.1.50.0040.00417.53
8.1.40.0110.00217.50
8.1.30.0000.00817.50
8.1.20.0030.00517.70
8.1.10.0000.00717.51
8.1.00.0060.00317.52
8.0.300.0000.00820.06
8.0.290.0020.00516.75
8.0.280.0070.00018.36
8.0.270.0040.00417.21
8.0.260.0030.00317.15
8.0.250.0040.00416.93
8.0.240.0000.00716.91
8.0.230.0000.00716.82
8.0.220.0070.00016.95
8.0.210.0000.00716.87
8.0.200.0070.00016.87
8.0.190.0040.00316.86
8.0.180.0070.00016.96
8.0.170.0030.00516.83
8.0.160.0040.00416.93
8.0.150.0030.00516.86
8.0.140.0040.00416.77
8.0.130.0000.00513.36
8.0.120.0040.00416.89
8.0.110.0000.00716.89
8.0.100.0050.00316.93
8.0.90.0040.00416.78
8.0.80.0090.01316.88
8.0.70.0040.00416.76
8.0.60.0000.00716.75
8.0.50.0070.00016.84
8.0.30.0120.01117.02
8.0.20.0140.00817.40
8.0.10.0030.00517.05
8.0.00.0090.01016.84
7.4.330.0000.00515.00
7.4.320.0000.00616.43
7.4.300.0000.00616.60
7.4.290.0030.00316.59
7.4.280.0040.00416.63
7.4.270.0040.00416.44
7.4.260.0030.00316.58
7.4.250.0000.00716.48
7.4.240.0040.00316.54
7.4.230.0030.00316.47
7.4.220.0060.01216.53
7.4.210.0030.01016.54
7.4.200.0030.00316.48
7.4.160.0080.00816.19
7.4.150.0150.01117.40
7.4.140.0080.01017.86
7.4.130.0060.01116.45
7.4.120.0090.00816.53
7.4.110.0090.00916.51
7.4.100.0140.00316.56
7.4.90.0070.01316.58
7.4.80.0110.00619.39
7.4.70.0090.00916.43
7.4.60.0090.00916.59
7.4.50.0000.00516.33
7.4.40.0050.01116.43
7.4.30.0080.00816.51
7.4.00.0070.01014.95
7.3.330.0030.00313.25
7.3.320.0060.00013.25
7.3.310.0000.00716.27
7.3.300.0030.00316.19
7.3.290.0070.01016.25
7.3.280.0070.00716.23
7.3.270.0110.01417.40
7.3.260.0130.00916.58
7.3.250.0120.00516.48
7.3.240.0030.01316.23
7.3.230.0140.00316.49
7.3.210.0130.00316.37
7.3.200.0060.01019.39
7.3.190.0120.00316.32
7.3.180.0120.00316.25
7.3.170.0050.01116.57
7.3.160.0090.00616.32
7.3.120.0060.01314.73
7.3.110.0070.01114.95
7.3.100.0060.00614.76
7.3.90.0070.00414.42
7.3.80.0040.01114.83
7.3.70.0080.00014.84
7.3.60.0030.00914.75
7.3.50.0080.00814.55
7.3.40.0080.00414.71
7.3.30.0080.00314.65
7.3.20.0130.00316.48
7.3.10.0120.00516.30
7.3.00.0070.01016.51
7.2.330.0110.00716.63
7.2.320.0050.01116.55
7.2.310.0100.00716.82
7.2.300.0120.01216.69
7.2.290.0130.00916.46
7.2.250.0060.01315.21
7.2.240.0040.01115.13
7.2.230.0120.00315.12
7.2.220.0040.00414.60
7.2.210.0040.00914.78
7.2.200.0100.00614.98
7.2.190.0030.01015.04
7.2.180.0000.01914.68
7.2.170.0040.00415.01
7.2.130.0000.01716.84
7.2.120.0070.00716.61
7.2.110.0070.00316.57
7.2.100.0040.00716.54
7.2.90.0000.01317.06
7.2.80.0060.00916.63
7.2.70.0030.00716.67
7.2.60.0070.00516.46
7.2.50.0110.00016.68
7.2.40.0030.01316.70
7.2.30.0100.00016.77
7.2.20.0040.01116.82
7.2.10.0100.00316.72
7.2.00.0060.00618.06
7.1.330.0120.00315.70
7.1.320.0040.00415.69
7.1.310.0070.00715.62
7.1.300.0030.00715.69
7.1.290.0030.01015.70
7.1.280.0050.00515.85
7.1.270.0070.01015.77
7.1.260.0080.00415.51
7.1.250.0060.00615.69
7.1.200.0040.01115.46
7.1.100.0000.01418.34
7.1.70.0000.00817.13
7.1.60.0130.01019.46
7.1.50.0070.00416.89
7.1.00.0000.08022.45
7.0.200.0090.00016.46
7.0.140.0100.06722.09
7.0.60.0100.05019.97
7.0.50.0100.07317.98
7.0.40.0100.08020.23
7.0.30.0270.08320.15
7.0.20.0370.08020.33
7.0.10.0100.06020.12
7.0.00.0200.06020.09
5.6.280.0000.07720.86
5.6.210.0200.06720.61
5.6.200.0170.03718.34
5.6.190.0100.03720.50
5.6.180.4300.04020.51
5.6.170.0300.04320.56
5.6.160.0070.05320.57
5.6.150.0100.07718.27
5.6.140.0170.07018.21
5.6.130.0070.04018.14
5.6.120.0030.05020.75
5.6.110.0130.08021.12
5.6.100.0130.06720.98
5.6.90.0000.07320.98
5.6.80.0270.07020.43
5.5.350.0300.07020.32
5.5.340.0130.06717.99
5.5.330.0100.05320.13
5.5.320.0400.06320.35
5.5.310.0200.04020.27
5.5.300.0030.06718.01
5.5.290.0030.08317.96
5.5.280.0070.08320.89
5.5.270.0100.08320.78
5.5.260.0000.04320.97
5.5.250.0170.05720.77
5.5.240.0130.05020.27
5.4.450.0330.04719.48
5.4.440.0670.04319.41
5.4.430.0230.05019.52
5.4.420.0170.04719.38
5.4.410.0430.04019.39
5.4.400.0170.04319.31
5.4.390.0300.04319.24
5.4.380.1100.07318.62
5.4.370.1330.06718.73
5.4.360.0600.06318.50
5.4.350.1130.07018.76
5.4.340.1030.05318.80
5.4.320.0060.03812.51
5.4.310.0080.03612.50
5.4.300.0040.03712.50
5.4.290.0030.03912.50
5.4.280.0030.03712.39
5.4.270.0040.03712.40
5.4.260.0070.03612.40
5.4.250.0040.03812.39
5.4.240.0060.03612.40
5.4.230.0070.03512.39
5.4.220.0050.03612.39
5.4.210.0030.03812.39
5.4.200.0040.03812.39
5.4.190.0080.03412.38
5.4.180.0040.04712.39
5.4.170.0050.03612.39
5.4.160.0030.04612.39
5.4.150.0090.04512.39
5.4.140.0030.04612.07
5.4.130.0040.04812.06
5.4.120.0100.03412.02
5.4.110.0050.03612.02
5.4.100.0060.03412.01
5.4.90.0060.03712.01
5.4.80.0030.03912.02
5.4.70.0060.03612.01
5.4.60.0080.03212.01
5.4.50.0050.03612.01
5.4.40.0040.03612.00
5.4.30.0090.03811.99
5.4.20.0070.03312.00
5.4.10.0090.03211.99
5.4.00.0070.03311.48
5.3.290.0070.04312.80
5.3.280.0060.03712.71
5.3.270.0060.04112.72
5.3.260.0050.03912.72
5.3.250.0040.03812.71
5.3.240.0040.03912.72
5.3.230.0040.04012.71
5.3.220.0070.03512.68
5.3.210.0060.03712.68
5.3.200.0080.03612.68
5.3.190.0050.04112.68
5.3.180.0060.03512.67
5.3.170.0050.04812.67
5.3.160.0130.03112.68
5.3.150.0090.03912.67
5.3.140.0080.03412.66
5.3.130.0070.03712.66
5.3.120.0050.04212.66
5.3.110.0060.03812.66
5.3.100.0050.03612.11
5.3.90.0080.03312.09
5.3.80.0080.03312.09
5.3.70.0080.04012.09
5.3.60.0060.03812.07
5.3.50.0060.04012.02
5.3.40.0080.03212.03
5.3.30.0040.03511.98
5.3.20.0040.03911.76
5.3.10.0070.03411.73
5.3.00.0050.03611.72
5.2.170.0050.0299.22
5.2.160.0050.0309.23
5.2.150.0090.0259.22
5.2.140.0050.0309.22
5.2.130.0010.0319.18
5.2.120.0040.0299.18
5.2.110.0080.0279.18
5.2.100.0020.0309.18
5.2.90.0060.0319.17
5.2.80.0040.0329.17
5.2.70.0050.0329.17
5.2.60.0060.0289.12
5.2.50.0040.0309.09
5.2.40.0050.0289.07
5.2.30.0030.0319.05
5.2.20.0050.0309.04
5.2.10.0050.0278.94
5.2.00.0070.0308.80
5.1.60.0030.0258.09
5.1.50.0030.0258.09
5.1.40.0070.0278.07
5.1.30.0050.0258.41
5.1.20.0060.0248.44
5.1.10.0020.0288.17
5.1.00.0040.0268.16
5.0.50.0040.0256.64
5.0.40.0070.0146.50
5.0.30.0040.0346.32
5.0.20.0030.0236.28
5.0.10.0030.0286.25
5.0.00.0040.0296.25
4.4.90.0020.0214.78
4.4.80.0050.0144.76
4.4.70.0020.0164.76
4.4.60.0020.0154.76
4.4.50.0030.0164.77
4.4.40.0050.0234.71
4.4.30.0030.0154.76
4.4.20.0020.0164.84
4.4.10.0020.0164.85
4.4.00.0060.0224.75
4.3.110.0000.0184.67
4.3.100.0030.0154.66
4.3.90.0030.0144.64
4.3.80.0040.0224.59
4.3.70.0030.0144.63
4.3.60.0030.0164.63
4.3.50.0040.0164.63
4.3.40.0010.0254.53
4.3.30.0030.0143.30
4.3.20.0010.0163.29
4.3.10.0020.0153.23
4.3.00.0030.01718.41

preferences:
40.16 ms | 401 KiB | 5 Q