3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A {} class B { function __construct($b = null, A $a) {} } Reflection::export(new ReflectionClass('B')); class C { function __construct(A $a, $b = null) {} } Reflection::export(new ReflectionClass('C'));

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.00916.63
8.3.60.0100.01016.63
8.3.50.0120.00921.98
8.3.40.0140.00019.02
8.3.30.0000.02118.67
8.3.20.0060.00320.21
8.3.10.0070.00723.48
8.3.00.0080.00019.38
8.2.190.0180.00018.54
8.2.180.0120.00316.63
8.2.170.0140.00022.96
8.2.160.0140.00020.53
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00017.25
8.2.120.0000.00826.35
8.2.110.0070.00322.26
8.2.100.0070.00419.45
8.2.90.0030.00517.75
8.2.80.0040.00418.78
8.2.70.0060.00317.38
8.2.60.0040.00417.63
8.2.50.0000.00917.93
8.2.40.0120.00017.63
8.2.30.0020.00520.62
8.2.20.0030.00617.63
8.2.10.0040.00418.07
8.2.00.0030.00518.02
8.1.280.0070.00725.92
8.1.270.0030.00623.92
8.1.260.0070.00028.09
8.1.250.0030.00728.09
8.1.240.0030.00620.71
8.1.230.0070.00417.70
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0040.00417.22
8.1.190.0060.00317.23
8.1.180.0030.00518.10
8.1.170.0000.00917.62
8.1.160.0040.00421.96
8.1.150.0000.00718.83
8.1.140.0110.00019.36
8.1.130.0000.00717.58
8.1.120.0000.00717.36
8.1.110.0000.00717.22
8.1.100.0040.00417.25
8.1.90.0040.00417.32
8.1.80.0050.00317.23
8.1.70.0070.00017.22
8.1.60.0040.00417.37
8.1.50.0030.00517.45
8.1.40.0040.00417.42
8.1.30.0000.00817.42
8.1.20.0040.00417.49
8.1.10.0000.00717.38
8.1.00.0080.00017.51
8.0.300.0000.00720.58
8.0.290.0050.00316.75
8.0.280.0070.00018.38
8.0.270.0000.00717.19
8.0.260.0030.00317.23
8.0.250.0030.00316.88
8.0.240.0030.00316.93
8.0.230.0000.00716.96
8.0.220.0040.00416.81
8.0.210.0030.00316.92
8.0.200.0000.00716.84
8.0.190.0040.00416.87
8.0.180.0040.00416.84
8.0.170.0040.00416.94
8.0.160.0030.00316.91
8.0.150.0000.00716.90
8.0.140.0040.00416.80
8.0.130.0050.00013.34
8.0.120.0090.00016.78
8.0.110.0040.00416.79
8.0.100.0000.00816.77
8.0.90.0040.00416.84
8.0.80.0100.00716.84
8.0.70.0080.00016.72
8.0.60.0040.00416.85
8.0.50.0040.00416.69
8.0.30.0080.01017.06
8.0.20.0080.01117.40
8.0.10.0000.00716.78
8.0.00.0120.00716.70
7.4.330.0050.00016.81
7.4.320.0070.00016.59
7.4.300.0000.00616.34
7.4.290.0000.01016.39
7.4.280.0070.00016.44
7.4.270.0000.00716.52
7.4.260.0000.00716.38
7.4.250.0040.00416.42
7.4.240.0060.00116.46
7.4.230.0030.00316.35
7.4.220.0150.00316.56
7.4.210.0080.00816.62
7.4.200.0000.00716.56
7.4.160.0130.00316.52
7.4.150.0240.02117.40
7.4.140.0060.01517.86
7.4.130.0100.01016.31
7.4.120.0110.00716.39
7.4.110.0070.01116.52
7.4.100.0110.00816.19
7.4.90.0080.00816.32
7.4.80.0060.01319.39
7.4.70.0080.00816.41
7.4.60.0100.00716.39
7.4.50.0040.01116.24
7.4.40.0120.00616.71
7.4.30.0090.00816.57
7.4.00.0110.00614.80
7.3.330.0000.00512.93
7.3.320.0000.00513.02
7.3.310.0070.00016.16
7.3.300.0070.00016.20
7.3.290.0030.00316.06
7.3.280.0040.01116.16
7.3.270.0110.00617.40
7.3.260.0100.00716.15
7.3.250.0090.00816.19
7.3.240.0100.00716.14
7.3.230.0090.00916.39
7.3.210.0070.01416.43
7.3.200.0100.00716.38
7.3.190.0080.00816.20
7.3.180.0090.00616.06
7.3.170.0040.01816.27
7.3.160.0090.00616.18
7.3.120.0070.01014.54
7.3.110.0040.01514.61
7.3.100.0070.01014.65
7.3.90.0040.00814.57
7.3.80.0090.00914.82
7.3.70.0030.01014.77
7.3.60.0030.01014.77
7.3.50.0030.01014.74
7.3.40.0040.00814.77
7.3.30.0110.00414.36
7.3.20.0040.00416.55
7.3.10.0090.00316.33
7.3.00.0090.00416.44
7.2.330.0140.00616.30
7.2.320.0100.01016.34
7.2.310.0110.00616.48
7.2.300.0090.01116.36
7.2.290.0060.01216.10
7.2.250.0060.00914.73
7.2.240.0100.00614.64
7.2.230.0070.00714.93
7.2.220.0000.01314.57
7.2.210.0090.00914.93
7.2.200.0000.01214.82
7.2.190.0120.00614.74
7.2.180.0040.00714.78
7.2.170.0000.01014.98
7.2.160.0100.00315.03
7.2.150.0080.00816.63
7.2.140.0090.00316.78
7.2.130.0040.00816.91
7.2.120.0140.00316.77
7.2.110.0320.00716.36
7.2.100.0070.00716.74
7.2.90.0030.00716.45
7.2.80.0000.01116.66
7.2.70.0000.01416.50
7.2.60.0080.00516.73
7.2.50.0060.00916.39
7.2.40.0040.01116.86
7.2.30.0060.00316.64
7.2.20.0000.01116.76
7.2.10.0060.00916.82
7.2.00.0070.00817.89
7.1.330.0060.00815.49
7.1.320.0040.01115.34
7.1.310.0080.00815.70
7.1.300.0030.01015.79
7.1.290.0000.00915.49
7.1.280.0040.00415.70
7.1.270.0120.00015.46
7.1.260.0000.00915.65
7.1.250.0070.01015.60
7.1.240.0040.00815.50
7.1.230.0030.01015.46
7.1.220.0030.00915.65
7.1.210.0080.00815.60
7.1.200.0080.00615.71
7.1.190.0140.00315.78
7.1.180.0060.00615.69
7.1.170.0000.01215.59
7.1.160.0070.00715.69
7.1.150.0060.00615.50
7.1.140.0070.00715.69
7.1.130.0060.00315.66
7.1.120.0090.00315.40
7.1.110.0070.00415.61
7.1.100.0050.00716.58
7.1.90.0030.01015.61
7.1.80.0030.01015.30
7.1.70.0040.00716.42
7.1.60.0080.00517.39
7.1.50.0070.00916.16
7.1.40.0000.01715.53
7.1.30.0000.01515.76
7.1.20.0030.00915.60
7.1.10.0030.00615.51
7.1.00.0030.04418.99
7.0.330.0000.01315.26
7.0.320.0030.01015.21
7.0.310.0070.00715.26
7.0.300.0060.00614.98
7.0.290.0060.00615.08
7.0.280.0070.00315.44
7.0.270.0070.01015.45
7.0.260.0040.00415.16
7.0.250.0080.00415.27
7.0.240.0070.00415.33
7.0.230.0040.00715.50
7.0.220.0030.01215.29
7.0.210.0130.00315.18
7.0.200.0040.00815.79
7.0.190.0080.00315.42
7.0.180.0070.00315.25
7.0.170.0050.00515.34
7.0.160.0090.00315.12
7.0.150.0030.00715.26
7.0.140.0000.01215.44
7.0.130.0070.00715.39
7.0.120.0070.00715.07
7.0.110.0030.00915.36
7.0.100.0080.00415.43
7.0.90.0030.01315.43
7.0.80.0030.01015.33
7.0.70.0030.00615.26
7.0.60.0070.04117.60
7.0.50.0020.02916.56
7.0.40.0100.02216.82
7.0.30.0250.03316.83
7.0.20.0150.04516.60
7.0.10.0050.03016.76
7.0.00.0030.04616.70
5.6.400.0000.01314.23
5.6.390.0000.01314.34
5.6.380.0040.01114.03
5.6.370.0040.01214.07
5.6.360.0000.01214.09
5.6.350.0040.01114.15
5.6.340.0090.00314.38
5.6.330.0090.00014.43
5.6.320.0000.01614.13
5.6.310.0130.00314.52
5.6.300.0040.00414.00
5.6.290.0000.01214.02
5.6.280.0020.04017.42
5.6.270.0060.00314.36
5.6.260.0060.00614.01
5.6.250.0040.00813.97
5.6.240.0030.01014.46
5.6.230.0040.00714.39
5.6.220.0080.00014.08
5.6.210.0100.03617.37
5.6.200.0030.03116.23
5.6.190.0020.02817.32
5.6.180.0280.04017.46
5.6.170.0130.04517.29
5.6.160.0040.02417.33
5.6.150.0050.03016.13
5.6.140.0040.02616.38
5.6.130.0040.03016.30
5.6.120.0050.03217.74
5.6.110.0050.03317.57
5.6.100.0050.04317.50
5.6.90.0060.03117.69
5.6.80.0050.02317.27
5.6.70.0070.00314.14
5.6.60.0070.00714.19
5.6.50.0000.00914.19
5.6.40.0070.00714.14
5.6.30.0070.00713.98
5.6.20.0040.01414.13
5.6.10.0040.00414.07
5.6.00.0040.01114.14
5.5.380.0040.01114.24
5.5.370.0040.00714.38
5.5.360.0030.01414.16
5.5.350.0170.03517.27
5.5.340.0070.04015.88
5.5.330.0120.04217.14
5.5.320.0060.04617.06
5.5.310.0080.02817.30
5.5.300.0030.03116.17
5.5.290.0030.02516.13
5.5.280.0020.04517.35
5.5.270.0100.03117.39
5.5.260.0060.04817.35
5.5.250.0050.02717.46
5.5.240.2130.02817.01
5.5.230.0090.00313.98
5.5.220.0070.00713.94
5.5.210.0100.00314.25
5.5.200.0070.01013.90
5.5.190.0070.01014.03
5.5.180.0000.00814.11
5.5.170.0030.00614.22
5.5.160.0090.00613.99
5.5.150.0030.01013.89
5.5.140.0030.00714.08
5.5.130.0070.00714.09
5.5.120.0110.00014.16
5.5.110.0060.01314.25
5.5.100.0040.01114.14
5.5.90.0030.01414.31
5.5.80.0030.01413.95
5.5.70.0100.00713.79
5.5.60.0070.00313.82
5.5.50.0070.01014.41
5.5.40.0030.01013.61
5.5.30.0000.01014.07
5.5.20.0040.01113.71
5.5.10.0060.00614.45
5.5.00.0000.01314.27

preferences:
30.64 ms | 401 KiB | 5 Q