3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public $prop1=1, $prop2=2,$prop3=3,$prop4=4; private $propa=11, $propb=22,$propc=33,$propd=44; protected $propx=111, $propy=222,$propz=333,$propzz=444; } $t = new Test; echo count( (array) $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.00716.38
8.3.50.0080.01121.93
8.3.40.0070.00718.70
8.3.30.0140.00719.14
8.3.20.0040.00420.16
8.3.10.0000.00923.56
8.3.00.0000.00919.13
8.2.180.0090.00618.41
8.2.170.0110.00422.96
8.2.160.0070.00720.52
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0070.00726.16
8.2.120.0070.00022.29
8.2.110.0080.00022.25
8.2.100.0110.00017.78
8.2.90.0050.00319.20
8.2.80.0030.00617.97
8.2.70.0000.00917.50
8.2.60.0040.00418.03
8.2.50.0030.00618.07
8.2.40.0040.00418.22
8.2.30.0000.00818.13
8.2.20.0040.00417.69
8.2.10.0000.00818.12
8.2.00.0070.00317.67
8.1.280.0070.01125.92
8.1.270.0040.00423.92
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0060.00323.92
8.1.230.0040.00719.22
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0000.01217.13
8.1.190.0000.00817.39
8.1.180.0030.00618.10
8.1.170.0000.00818.71
8.1.160.0040.00421.95
8.1.150.0070.00018.71
8.1.140.0070.00017.51
8.1.130.0040.00417.73
8.1.120.0000.00717.46
8.1.110.0040.00417.32
8.1.100.0070.00017.36
8.1.90.0000.00817.35
8.1.80.0070.00017.46
8.1.70.0000.00717.39
8.1.60.0000.00817.59
8.1.50.0060.00317.52
8.1.40.0000.00817.45
8.1.30.0040.00417.62
8.1.20.0080.00017.61
8.1.10.0040.00417.55
8.1.00.0000.00717.36
8.0.300.0040.00418.77
8.0.290.0050.00217.18
8.0.280.0070.00018.44
8.0.270.0000.00717.25
8.0.260.0000.00617.20
8.0.250.0030.00316.97
8.0.240.0070.00216.94
8.0.230.0070.00016.77
8.0.220.0070.00016.87
8.0.210.0040.00416.78
8.0.200.0030.00316.92
8.0.190.0000.00716.96
8.0.180.0000.00716.85
8.0.170.0030.00616.98
8.0.160.0080.00016.73
8.0.150.0000.00716.79
8.0.140.0050.00216.77
8.0.130.0030.00313.30
8.0.120.0000.00716.73
8.0.110.0040.00416.86
8.0.100.0000.00716.77
8.0.90.0000.00716.89
8.0.80.0070.01016.86
8.0.70.0000.00716.91
8.0.60.0080.00016.69
8.0.50.0030.00516.90
8.0.30.0120.00717.00
8.0.20.0090.00917.40
8.0.10.0040.00417.00
8.0.00.0070.01216.70
7.4.330.0020.00215.13
7.4.320.0030.00316.59
7.4.300.0030.00316.55
7.4.290.0030.00316.49
7.4.280.0060.00316.43
7.4.270.0040.00416.61
7.4.260.0030.00316.59
7.4.250.0030.00316.55
7.4.240.0000.00716.48
7.4.230.0040.00416.40
7.4.220.0070.01116.66
7.4.210.0070.00916.66
7.4.200.0030.00316.61
7.4.190.0050.00216.76
7.4.160.0030.01616.56
7.4.150.0120.00617.40
7.4.140.0080.00917.86
7.4.130.0090.00716.48
7.4.120.0140.00516.60
7.4.110.0160.00916.55
7.4.100.0120.01216.66
7.4.90.0070.01016.57
7.4.80.0030.01719.39
7.4.70.0080.00916.44
7.4.60.0070.01116.61
7.4.50.0040.00416.35
7.4.40.0030.00722.77
7.4.30.0140.00616.38
7.4.00.0070.00715.11
7.3.330.0020.00213.14
7.3.320.0050.00013.25
7.3.310.0080.00016.26
7.3.300.0030.00316.35
7.3.290.0110.00316.30
7.3.280.0090.00516.30
7.3.270.0130.00317.40
7.3.260.0100.01316.43
7.3.250.0090.01216.50
7.3.240.0070.01016.46
7.3.230.0160.00616.39
7.3.210.0090.00616.34
7.3.200.0110.01119.39
7.3.190.0040.01716.31
7.3.180.0100.01016.56
7.3.170.0090.00616.61
7.3.160.0090.00816.25
7.3.120.0030.00915.05
7.3.10.0070.00816.71
7.3.00.0070.00716.35
7.2.330.0130.00616.73
7.2.320.0100.01116.71
7.2.310.0080.00816.59
7.2.300.0080.00816.74
7.2.290.0100.01016.72
7.2.130.0040.00816.82
7.2.120.0090.00516.51
7.2.110.0020.01016.76
7.2.100.0120.00316.80
7.2.90.0070.00816.61
7.2.80.0050.00816.52
7.2.70.0090.00716.53
7.2.60.0080.00616.82
7.2.50.0080.00616.58
7.2.40.0130.00616.61
7.2.30.0130.00416.74
7.2.20.0060.01016.89
7.2.10.0060.00516.73
7.2.00.0070.01117.71
7.1.250.0060.00515.76
7.1.200.0110.00415.78
7.1.100.0000.01117.61
7.1.70.0120.00317.18
7.1.60.0090.01619.33
7.1.50.0200.01634.40
7.1.00.0070.07022.40
7.0.200.0000.01116.91
7.0.140.0030.07322.16
7.0.60.0030.05019.86
7.0.50.0070.05017.97
7.0.40.0100.05720.25
7.0.30.0600.06020.30
7.0.20.0200.05020.11
7.0.10.0200.04320.12
7.0.00.0000.09020.05
5.6.280.0070.06320.98
5.6.210.0030.07720.76
5.6.200.0030.07018.15
5.6.190.0100.04320.61
5.6.180.0370.07020.39
5.6.170.0270.03720.44
5.6.160.0070.08020.61
5.6.150.0130.07018.19
5.6.140.0100.07718.21
5.6.130.0100.06718.18
5.6.120.0170.07321.01
5.6.110.0100.07720.89
5.6.100.0070.08320.93
5.6.90.0030.04020.99
5.6.80.0100.07720.52
5.6.70.3800.03020.52
5.5.350.0070.08720.42
5.5.340.0070.08018.10
5.5.330.0070.05720.46
5.5.320.0200.04320.22
5.5.310.0270.07720.30
5.5.300.0030.08317.95
5.5.290.0070.07718.08
5.5.280.0030.09020.98
5.5.270.0030.04320.84
5.5.260.0030.05720.76
5.5.250.0070.09320.58
5.5.240.0230.07320.36
5.4.450.0230.07719.39
5.4.440.0270.07719.64
5.4.430.0100.07319.59
5.4.420.0330.05719.19
5.4.410.0270.06019.25
5.4.400.0200.05319.26
5.4.390.0170.06019.15
5.4.380.0300.06018.47
5.4.370.0430.06718.72
5.4.360.0470.05718.75
5.4.350.0400.07718.57
5.4.340.0370.05718.63
5.4.320.0060.03712.50
5.4.310.0120.04912.49
5.4.300.0040.03912.50
5.4.290.0050.05412.50
5.4.280.0090.04812.36
5.4.270.0140.04512.36
5.4.260.0100.04812.36
5.4.250.0160.05312.36
5.4.240.0140.04612.36
5.4.230.0080.05312.36
5.4.220.0060.04912.36
5.4.210.0110.04612.35
5.4.200.0160.05512.35
5.4.190.0090.04712.35
5.4.180.0140.03512.35
5.4.170.0110.03812.36
5.4.160.0070.03812.36
5.4.150.0060.03812.36
5.4.140.0040.04012.04
5.4.130.0110.03412.02
5.4.120.0030.04311.98
5.4.110.0080.04211.98
5.4.100.0050.04011.98
5.4.90.0070.04311.98
5.4.80.0100.04311.98
5.4.70.0060.03711.98
5.4.60.0050.04211.98
5.4.50.0070.04511.98
5.4.40.0060.03911.96
5.4.30.0080.04011.96
5.4.20.0090.04711.96
5.4.10.0100.04311.96
5.4.00.0090.04911.45
5.3.290.0070.03812.80
5.3.280.0130.04112.71
5.3.270.0090.04212.72
5.3.260.0050.04512.72
5.3.250.0070.03912.72
5.3.240.0100.03812.72
5.3.230.0070.05212.71
5.3.220.0140.05812.68
5.3.210.0230.05412.68
5.3.200.0080.05112.68
5.3.190.0090.06212.68
5.3.180.0070.05412.68
5.3.170.0070.06212.67
5.3.160.0170.05612.68
5.3.150.0130.05312.68
5.3.140.0140.05512.66
5.3.130.0190.05812.66
5.3.120.0200.05912.66
5.3.110.0120.06112.66
5.3.100.0160.04812.12
5.3.90.0190.05712.08
5.3.80.0130.04612.08
5.3.70.0100.04612.07
5.3.60.0090.04812.06
5.3.50.0100.04612.00
5.3.40.0080.04812.00
5.3.30.0120.03211.95
5.3.20.0090.04511.73
5.3.10.0120.04811.70
5.3.00.0090.03911.69
5.2.170.0060.0319.18
5.2.160.0060.0459.19
5.2.150.0060.0399.19
5.2.140.0070.0399.18
5.2.130.0110.0339.14
5.2.120.0240.0519.14
5.2.110.0100.0509.15
5.2.100.0070.0419.15
5.2.90.0140.0349.14
5.2.80.0120.0559.14
5.2.70.0100.0459.14
5.2.60.0080.0429.09
5.2.50.0030.0449.06
5.2.40.0080.0369.04
5.2.30.0040.0409.02
5.2.20.0040.0309.00
5.2.10.0050.0368.91
5.2.00.0080.0338.78
5.1.60.0090.0418.07
5.1.50.0070.0268.07
5.1.40.0090.0258.05
5.1.30.0060.0268.39
5.1.20.0060.0308.42
5.1.10.0060.0328.14
5.1.00.0040.0428.14
5.0.50.0090.0256.62
5.0.40.0120.0316.48
5.0.30.0050.0396.29
5.0.20.0050.0266.26
5.0.10.0070.0236.24
5.0.00.0020.0346.22
4.4.90.0040.0184.77
4.4.80.0050.0284.76
4.4.70.0080.0184.75
4.4.60.0030.0224.76
4.4.50.0050.0214.77
4.4.40.0050.0404.71
4.4.30.0050.0224.76
4.4.20.0040.0264.84
4.4.10.0050.0234.85
4.4.00.0060.0354.75
4.3.110.0030.0254.67
4.3.100.0040.0234.67
4.3.90.0030.0234.64
4.3.80.0040.0324.58
4.3.70.0070.0194.63
4.3.60.0060.0224.63
4.3.50.0040.0244.63
4.3.40.0040.0364.53
4.3.30.0050.0213.28
4.3.20.0030.0223.27
4.3.10.0050.0203.23
4.3.00.0100.0177.79

preferences:
40.69 ms | 401 KiB | 5 Q