3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('FIELD_NAME',"foo"); class A { public $foo = 'foo'; } $a = new A(); echo $a->{FIELD_NAME};

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.20.0200.00017.68
8.4.10.0040.00417.48
8.3.150.0080.00020.63
8.3.140.0100.00516.60
8.3.130.0050.00318.41
8.3.120.0000.00818.97
8.3.110.0120.00616.50
8.3.100.0030.00624.06
8.3.90.0040.00426.77
8.3.80.0000.00916.75
8.3.70.0110.00716.58
8.3.60.0110.00716.38
8.3.50.0110.00921.09
8.3.40.0110.00318.70
8.3.30.0160.00318.95
8.3.20.0040.00420.39
8.3.10.0000.00821.99
8.3.00.0080.00017.50
8.2.260.0060.01217.04
8.2.250.0190.00018.05
8.2.240.0080.00018.78
8.2.230.0090.00020.94
8.2.220.0060.00337.54
8.2.210.0070.00026.77
8.2.200.0030.00616.38
8.2.190.0120.00416.75
8.2.180.0090.00625.92
8.2.170.0110.00718.95
8.2.160.0070.00719.47
8.2.150.0030.00624.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0030.00521.04
8.2.110.0060.00319.27
8.2.100.0090.00317.59
8.2.90.0070.00317.78
8.2.80.0040.00717.97
8.2.70.0030.00517.93
8.2.60.0040.00417.91
8.2.50.0030.00518.10
8.2.40.0000.00720.42
8.2.30.0040.00417.97
8.2.20.0040.00417.55
8.2.10.0030.00517.91
8.2.00.0040.00418.04
8.1.310.0150.00416.76
8.1.300.0040.01119.46
8.1.290.0030.00618.88
8.1.280.0100.01025.92
8.1.270.0070.00023.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0100.00019.09
8.1.230.0090.00320.92
8.1.220.0030.00517.79
8.1.210.0030.00518.90
8.1.200.0040.00417.23
8.1.190.0030.00617.23
8.1.180.0060.00318.10
8.1.170.0000.00918.70
8.1.160.0040.00422.05
8.1.150.0070.00018.88
8.1.140.0040.00417.48
8.1.130.0000.00717.82
8.1.120.0050.00217.41
8.1.110.0050.00317.45
8.1.100.0040.00417.35
8.1.90.0050.00217.51
8.1.80.0000.00817.44
8.1.70.0000.00717.43
8.1.60.0000.00817.56
8.1.50.0000.00817.38
8.1.40.0030.00717.54
8.1.30.0050.00317.56
8.1.20.0060.00317.63
8.1.10.0040.00417.54
8.1.00.0040.00417.49
8.0.300.0060.00319.87
8.0.290.0000.00716.63
8.0.280.0000.00718.44
8.0.270.0080.00016.82
8.0.260.0040.00417.29
8.0.250.0000.00716.89
8.0.240.0050.00216.94
8.0.230.0000.00816.96
8.0.220.0000.00716.88
8.0.210.0070.00016.86
8.0.200.0030.00316.91
8.0.190.0030.00516.88
8.0.180.0030.00616.88
8.0.170.0030.00616.88
8.0.160.0000.00816.90
8.0.150.0040.00416.82
8.0.140.0000.00716.76
8.0.130.0030.00313.35
8.0.120.0050.00316.77
8.0.110.0040.00416.88
8.0.100.0040.00416.84
8.0.90.0050.00216.86
8.0.80.0110.00416.95
8.0.70.0070.00016.79
8.0.60.0040.00416.86
8.0.50.0000.00716.77
8.0.30.0120.00817.16
8.0.20.0100.00917.29
8.0.10.0080.01216.85
8.0.00.0130.00516.76
7.4.330.0050.00015.09
7.4.320.0030.00316.59
7.4.300.0030.00316.58
7.4.290.0030.00316.60
7.4.280.0000.00816.39
7.4.270.0040.00416.36
7.4.260.0030.00316.47
7.4.250.0000.00716.61
7.4.240.0040.00416.47
7.4.230.0040.00416.60
7.4.220.0150.00316.50
7.4.210.0030.01016.57
7.4.200.0050.00316.35
7.4.160.0140.00516.63
7.4.150.0110.00616.84
7.4.140.0030.01517.40
7.4.130.0090.01016.59
7.4.120.0050.01516.53
7.4.110.0120.00516.48
7.4.100.0050.01216.40
7.4.90.0100.00716.35
7.4.80.0140.00717.94
7.4.70.0090.00916.49
7.4.60.0110.00616.46
7.4.50.0110.00216.43
7.4.40.0090.00716.45
7.4.30.0070.00916.37
7.4.20.0130.00416.11
7.4.10.0110.01416.34
7.4.00.0060.01015.52
7.3.330.0000.00613.16
7.3.320.0100.00712.99
7.3.310.0070.00016.05
7.3.300.0040.00416.27
7.3.290.0030.00516.09
7.3.280.0100.00716.20
7.3.270.0110.01016.85
7.3.260.0060.01216.52
7.3.250.0100.00716.21
7.3.240.0070.01116.30
7.3.230.0050.01416.28
7.3.220.0060.01216.43
7.3.210.0080.00916.31
7.3.200.0110.00917.74
7.3.190.0110.00516.24
7.3.180.0140.00416.25
7.3.170.0080.00816.35
7.3.160.0070.01216.45
7.3.150.0070.01016.38
7.3.140.0090.01516.64
7.3.130.0090.00916.58
7.3.120.0090.00715.50
7.3.110.0130.00515.59
7.3.100.0050.00915.37
7.3.90.0090.00815.58
7.3.80.0100.00315.33
7.3.70.0110.00515.62
7.3.60.0090.00714.90
7.3.50.0110.00714.83
7.3.40.0110.00814.76
7.3.30.0080.00914.85
7.3.20.0200.00816.06
7.3.10.0240.00916.10
7.3.00.0250.00715.93
7.2.340.0120.01516.40
7.2.330.0130.00816.40
7.2.320.0110.00816.61
7.2.310.0100.01116.53
7.2.300.0070.01016.53
7.2.290.0060.01416.42
7.2.280.0110.00816.31
7.2.270.0170.01016.20
7.2.260.0110.00716.35
7.2.250.0090.00916.32
7.2.240.0130.00115.57
7.2.230.0050.01315.51
7.2.220.0070.00715.57
7.2.210.0110.00615.47
7.2.200.0080.00915.66
7.2.190.0100.00715.11
7.2.180.0090.00714.99
7.2.170.0140.00415.19
7.2.160.0110.00615.01
7.2.150.0220.00716.28
7.2.140.0230.00916.28
7.2.130.0280.00916.13
7.2.120.0200.00916.09
7.2.110.0230.00816.20
7.2.100.0220.00716.17
7.2.90.0250.01016.16
7.2.80.0270.01016.13
7.2.70.0280.00916.10
7.2.60.0200.01016.16
7.2.50.0260.00616.03
7.2.40.0340.00816.20
7.2.30.0190.00716.04
7.2.20.0240.00616.09
7.2.10.0240.00616.11
7.2.00.0160.01116.56
7.1.330.0150.00315.53
7.1.320.0150.00215.37
7.1.310.0080.00815.57
7.1.300.0060.01115.37
7.1.290.0090.00715.45
7.1.280.0090.00915.45
7.1.270.0090.00715.45
7.1.260.0130.00815.56
7.1.250.0240.00915.05
7.1.240.0380.01014.85
7.1.230.0280.01014.87
7.1.220.0330.00614.99
7.1.210.0270.00614.92
7.1.200.0250.00815.00
7.1.190.0290.00714.95
7.1.180.0290.00915.02
7.1.170.0320.01014.97
7.1.160.0290.00714.98
7.1.150.0240.01015.05
7.1.140.0280.00815.06
7.1.130.0280.00514.93
7.1.120.0220.00814.93
7.1.110.0300.00715.05
7.1.100.0270.00715.42
7.1.90.0300.00814.94
7.1.80.0240.00915.41
7.1.70.0200.00715.55
7.1.60.0250.01018.08
7.1.50.0240.00917.68
7.1.40.0250.00817.80
7.1.30.0290.00817.75
7.1.20.0580.00817.68
7.1.10.0240.00815.12
7.1.00.0230.01716.14
7.0.330.0320.00714.45
7.0.320.0290.00714.62
7.0.310.0280.01214.73
7.0.300.0280.00914.57
7.0.290.0220.00814.54
7.0.280.0260.00814.58
7.0.270.0300.00714.65
7.0.260.0360.00914.66
7.0.250.0220.01014.63
7.0.240.0290.01014.66
7.0.230.0220.00914.70
7.0.220.0240.00514.61
7.0.210.0230.00914.72
7.0.200.0210.00715.15
7.0.190.0200.00814.96
7.0.180.0230.00714.77
7.0.170.0240.00714.77
7.0.160.0180.00914.80
7.0.150.0230.00514.83
7.0.140.0270.00714.86
7.0.130.0220.00814.80
7.0.120.0250.00814.91
7.0.110.0240.01014.85
7.0.100.0170.01214.76
7.0.90.0270.00814.90
7.0.80.0200.00914.72
7.0.70.0140.01014.81
7.0.60.0180.01315.29
7.0.50.0170.01615.16
7.0.40.0180.01615.51
7.0.30.0250.01015.49
7.0.20.0170.01615.61
7.0.10.0190.01615.54
7.0.00.0200.01615.50
5.6.400.0120.00814.27
5.6.390.0140.00514.22
5.6.380.0120.01214.40
5.6.370.0150.00814.54
5.6.360.0160.00814.55
5.6.350.0110.01314.46
5.6.340.0140.00914.45
5.6.330.0130.00914.57
5.6.320.0130.00714.44
5.6.310.0110.01014.58
5.6.300.0160.01415.40
5.6.290.0130.02115.46
5.6.280.0100.02516.17
5.6.270.0130.01815.44
5.6.260.0140.01715.46
5.6.250.0120.01815.46
5.6.240.0140.01815.45
5.6.230.0150.01715.53
5.6.220.0130.01915.51
5.6.210.0110.02216.09
5.6.200.0090.03015.78
5.6.190.0110.02116.13
5.6.180.0110.02616.02
5.6.170.0150.02016.04
5.6.160.0140.02715.95
5.6.150.0140.02615.77
5.6.140.0120.02015.75
5.6.130.0140.02415.69
5.6.120.0120.02916.15
5.6.110.0110.02116.06
5.6.100.0110.02816.15
5.6.90.0130.02516.03
5.6.80.0140.02415.94
5.6.70.0120.02115.89
5.6.60.0110.01715.30
5.6.50.0100.02115.29
5.6.40.0120.02015.30
5.6.30.0110.01915.26
5.6.20.0140.01615.28
5.6.10.0110.01715.30
5.6.00.0100.01915.29
5.5.380.0120.02014.05
5.5.370.0140.01614.04
5.5.360.0130.02014.05
5.5.350.0120.02814.90
5.5.340.0150.02014.61
5.5.330.0140.02414.83
5.5.320.0190.02414.86
5.5.310.0150.02514.75
5.5.300.0130.02014.65
5.5.290.0130.01914.54
5.5.280.0110.02414.91
5.5.270.0140.02015.00
5.5.260.0110.02514.94
5.5.250.0150.02214.81
5.5.240.0120.02214.62
5.5.230.0150.01513.93
5.5.220.0140.01613.96
5.5.210.0100.01913.93
5.5.200.0130.01713.98
5.5.190.0130.01913.96
5.5.180.0130.01813.82
5.5.170.0130.00813.40
5.5.160.0120.01713.99
5.5.150.0110.01813.94
5.5.140.0140.01413.99
5.5.130.0100.01714.06
5.5.120.0120.01513.92
5.5.110.0130.01613.92
5.5.100.0110.01713.87
5.5.90.0130.01513.94
5.5.80.0150.01413.95
5.5.70.0090.01713.94
5.5.60.0130.01613.86
5.5.50.0110.02013.83
5.5.40.0140.01413.83
5.5.30.0130.01613.87
5.5.20.0150.00913.93
5.5.10.0140.01413.91
5.5.00.0120.01813.86
5.4.450.0180.02013.87
5.4.440.0230.01713.88
5.4.430.0160.02213.79
5.4.420.0120.02113.77
5.4.410.0120.01813.72
5.4.400.0110.01813.61
5.4.390.0130.01613.72
5.4.380.0110.02013.71
5.4.370.0100.02013.68
5.4.360.0090.01913.76
5.4.350.0080.02113.65
5.4.340.0120.01913.63
5.4.330.0130.00611.90
5.4.320.0120.01713.60
5.4.310.0110.02013.73
5.4.300.0110.01913.66
5.4.290.0110.01913.68
5.4.280.0090.02013.66
5.4.270.0100.02013.64
5.4.260.0110.01713.71
5.4.250.0110.02113.63
5.4.240.0100.01813.69
5.4.230.0070.02113.66
5.4.220.0110.01913.71
5.4.210.0120.01813.68
5.4.200.0130.01813.42
5.4.190.0110.01913.72
5.4.180.0110.01713.66
5.4.170.0110.02213.70
5.4.160.0110.02013.63
5.4.150.0140.01913.68
5.4.140.0110.01913.12
5.4.130.0130.01913.08
5.4.120.0080.02313.07
5.4.110.0130.01713.11
5.4.100.0110.02113.08
5.4.90.0120.02113.09
5.4.80.0090.01813.15
5.4.70.0090.02013.10
5.4.60.0130.01513.07
5.4.50.0120.01713.06
5.4.40.0110.01613.10
5.4.30.0100.01713.08
5.4.20.0110.01713.07
5.4.10.0110.02013.10
5.4.00.0110.01912.96
5.3.290.0150.00913.06
5.3.280.0130.01312.96
5.3.270.0170.00813.04
5.3.260.0160.00813.12
5.3.250.0240.00013.01
5.3.240.0160.00812.91
5.3.230.0100.01313.09
5.3.220.0160.01012.91
5.3.210.0110.01412.89
5.3.200.0130.01312.93
5.3.190.0150.00912.81
5.3.180.0140.00912.91
5.3.170.0150.01212.97
5.3.160.0190.00512.98
5.3.150.0090.01513.08
5.3.140.0180.00413.03
5.3.130.0160.00813.18
5.3.120.0170.01012.95
5.3.110.0140.01112.95
5.3.100.0120.01212.91
5.3.90.0150.00812.95
5.3.80.0170.00512.83
5.3.70.0190.00312.96
5.3.60.0160.00613.06
5.3.50.0160.00812.88
5.3.40.0140.01012.89
5.3.30.0230.00513.06
5.3.20.0210.00313.02
5.3.10.0090.01212.70
5.3.00.0140.00812.79
5.2.170.0120.00912.32
5.2.160.0080.01212.32
5.2.150.0160.00512.32
5.2.140.0080.01312.32
5.2.130.0150.00312.32
5.2.120.0070.01412.32
5.2.110.0080.01012.32
5.2.100.0050.01412.32
5.2.90.0080.01212.32
5.2.80.0130.00912.32
5.2.70.0170.00312.32
5.2.60.0160.00312.32
5.2.50.0150.00612.32
5.2.40.0080.01212.32
5.2.30.0140.00712.32
5.2.20.0150.00612.32
5.2.10.0070.01112.32
5.2.00.0180.00012.32
5.1.60.0140.00312.32
5.1.50.0120.00612.32
5.1.40.0040.01212.32
5.1.30.0110.00812.32
5.1.20.0170.00012.32
5.1.10.0110.00612.32
5.1.00.0110.00612.32
5.0.50.0110.00412.32
5.0.40.0050.01112.32
5.0.30.0100.00512.32
5.0.20.0080.00612.32
5.0.10.0100.00512.32
5.0.00.0110.00312.32
4.4.90.0100.00012.32
4.4.80.0060.00312.32
4.4.70.0000.00912.32
4.4.60.0070.00412.32
4.4.50.0060.00312.32
4.4.40.0100.00312.32
4.4.30.0030.00612.32
4.4.20.0050.00512.32
4.4.10.0080.00212.32
4.4.00.0070.00412.32
4.3.110.0000.00812.32
4.3.100.0050.00512.32
4.3.90.0080.00012.32
4.3.80.0000.01212.32
4.3.70.0040.00512.32
4.3.60.0060.00312.32
4.3.50.0050.00512.32
4.3.40.0060.00612.32
4.3.30.0060.00212.32
4.3.20.0080.00012.32
4.3.10.0060.00312.32
4.3.00.0040.00412.32

preferences:
36.6 ms | 403 KiB | 5 Q