3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('f', 'a'); class C { public $a = 1; } $c = new C; echo $c->{f}; echo f;

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.0060.00916.50
8.3.50.0070.01118.17
8.3.40.0150.00418.84
8.3.30.0110.00318.75
8.3.20.0070.00021.91
8.3.10.0040.00421.79
8.3.00.0000.00819.44
8.2.180.0100.01318.17
8.2.170.0120.00322.96
8.2.160.0030.01019.08
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0080.00022.25
8.2.120.0000.00726.35
8.2.110.0050.00520.54
8.2.100.0040.00817.84
8.2.90.0000.00819.23
8.2.80.0060.00317.97
8.2.70.0040.00417.25
8.2.60.0040.00417.93
8.2.50.0040.00418.10
8.2.40.0000.00820.59
8.2.30.0000.00719.31
8.2.20.0040.00418.11
8.2.10.0030.00617.95
8.2.00.0050.00318.11
8.1.280.0120.00925.92
8.1.270.0080.00020.56
8.1.260.0050.00226.35
8.1.250.0070.00028.09
8.1.240.0090.00320.97
8.1.230.0070.00317.50
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0050.00517.35
8.1.190.0030.00717.23
8.1.180.0060.00318.10
8.1.170.0040.00418.50
8.1.160.0030.00318.86
8.1.150.0050.00318.94
8.1.140.0070.00019.50
8.1.130.0030.00318.80
8.1.120.0030.00317.45
8.1.110.0040.00417.33
8.1.100.0000.00817.48
8.1.90.0040.00417.47
8.1.80.0030.00617.48
8.1.70.0030.00317.34
8.1.60.0030.00517.46
8.1.50.0030.00517.49
8.1.40.0030.00517.35
8.1.30.0040.00417.68
8.1.20.0000.00717.72
8.1.10.0000.00817.47
8.1.00.0020.00517.50
8.0.300.0000.00718.77
8.0.290.0080.00016.63
8.0.280.0050.00218.30
8.0.270.0000.00717.21
8.0.260.0000.00617.16
8.0.250.0030.00316.94
8.0.240.0030.00516.89
8.0.230.0070.00016.90
8.0.220.0000.00716.78
8.0.210.0030.00316.86
8.0.200.0030.00316.86
8.0.190.0000.00816.93
8.0.180.0000.00816.79
8.0.170.0040.00416.80
8.0.160.0030.00316.80
8.0.150.0000.00816.92
8.0.140.0070.00016.82
8.0.130.0040.00413.25
8.0.120.0000.00816.88
8.0.110.0040.00416.81
8.0.100.0040.00416.82
8.0.90.0040.00416.87
8.0.80.0150.00616.91
8.0.70.0040.00416.94
8.0.60.0040.00416.75
8.0.50.0030.00516.90
8.0.30.0080.01017.01
8.0.20.0120.00917.40
8.0.10.0040.00416.82
8.0.00.0070.01016.56
7.4.330.0030.00315.55
7.4.320.0060.00016.58
7.4.300.0040.00416.35
7.4.290.0060.00316.40
7.4.280.0050.00316.59
7.4.270.0040.00416.50
7.4.260.0070.00016.48
7.4.250.0000.00716.40
7.4.240.0080.00016.53
7.4.230.0030.00316.35
7.4.220.0180.00316.55
7.4.210.0100.00716.54
7.4.200.0030.00316.62
7.4.160.0090.00616.46
7.4.150.0130.00317.40
7.4.140.0130.01117.86
7.4.130.0170.00616.49
7.4.120.0110.00816.43
7.4.110.0090.00616.40
7.4.100.0090.01316.39
7.4.90.0090.01216.45
7.4.80.0030.01319.39
7.4.70.0110.01116.66
7.4.60.0060.01616.66
7.4.50.0030.01216.68
7.4.40.0170.00016.32
7.4.30.0100.00916.42
7.4.10.0140.00415.01
7.4.00.0030.01114.88
7.3.330.0000.00613.23
7.3.320.0030.00313.01
7.3.310.0030.00516.19
7.3.300.0030.00316.22
7.3.290.0030.01116.21
7.3.280.0100.00816.18
7.3.270.0120.00617.40
7.3.260.0120.00616.38
7.3.250.0110.00716.31
7.3.240.0100.00716.31
7.3.230.0110.00616.25
7.3.210.0090.00616.46
7.3.200.0080.00816.34
7.3.190.0100.01016.45
7.3.180.0070.01016.45
7.3.170.0130.00316.44
7.3.160.0110.00516.61
7.3.130.0060.00914.90
7.3.120.0110.00714.71
7.3.110.0060.01014.92
7.3.100.0070.00714.92
7.3.90.0070.01114.60
7.3.80.0030.00914.76
7.3.70.0070.00714.77
7.3.60.0070.01114.66
7.3.50.0040.01514.81
7.3.40.0060.00914.80
7.3.30.0030.01014.83
7.3.20.0070.01016.37
7.3.10.0080.00616.65
7.3.00.0080.00316.67
7.2.330.0030.02016.51
7.2.320.0060.01216.71
7.2.310.0090.00616.71
7.2.300.0080.00816.81
7.2.290.0060.01216.53
7.2.260.0120.00915.01
7.2.250.0100.01015.05
7.2.240.0060.01014.86
7.2.230.0100.00714.68
7.2.220.0070.00714.79
7.2.210.0060.00915.04
7.2.200.0030.01415.10
7.2.190.0040.00714.54
7.2.180.0090.00915.12
7.2.170.0060.00315.09
7.2.160.0040.01115.03
7.2.150.0070.01116.37
7.2.140.0000.01516.89
7.2.130.0050.00716.81
7.2.120.0060.00616.86
7.2.110.0020.01216.83
7.2.100.0040.01016.94
7.2.90.0090.00316.79
7.2.80.0060.00616.89
7.2.70.0050.00716.79
7.2.60.0070.00916.88
7.2.50.0040.01316.97
7.2.40.0070.00916.86
7.2.30.0030.01217.03
7.2.20.0020.01416.74
7.2.10.0050.01316.71
7.2.00.0080.00516.87
7.1.330.0030.00915.28
7.1.320.0100.01015.80
7.1.310.0040.01115.66
7.1.300.0030.01415.94
7.1.290.0040.01115.33
7.1.280.0060.00615.73
7.1.270.0070.00715.47
7.1.260.0090.00615.86
7.1.250.0050.00515.67
7.1.240.0070.00715.57
7.1.230.0060.01015.29
7.1.220.0040.00915.60
7.1.210.0040.01115.52
7.1.200.0000.01715.45
7.1.190.0000.01015.65
7.1.180.0090.00615.70
7.1.170.0040.00715.59
7.1.160.0070.01015.85
7.1.150.0030.01015.57
7.1.140.0090.00315.38
7.1.130.0030.01515.52
7.1.120.0060.00615.56
7.1.110.0060.00815.77
7.1.100.0080.00315.93
7.1.90.0100.00715.84
7.1.80.0030.00815.82
7.1.70.0040.01116.33
7.1.60.0020.01116.28
7.1.50.0710.00724.05
7.1.40.0530.01224.16
7.1.30.0660.00824.03
7.1.20.0650.01024.08
7.1.10.0400.00815.06
7.1.00.0420.01215.07
7.0.330.0070.00715.40
7.0.320.0080.00415.27
7.0.310.0070.00715.31
7.0.300.0120.00615.32
7.0.290.0060.00615.45
7.0.280.0070.00715.09
7.0.270.0070.00315.10
7.0.260.0040.01115.23
7.0.250.0040.00415.27
7.0.240.0030.01015.29
7.0.230.0030.00515.33
7.0.220.0060.00315.25
7.0.210.0030.01415.38
7.0.200.0070.00715.94
7.0.190.0710.00614.96
7.0.180.0560.00314.86
7.0.170.0600.01014.93
7.0.160.0580.00914.76
7.0.150.0430.00314.84
7.0.140.0560.01214.76
7.0.130.0400.01215.07
7.0.120.0390.00614.98
7.0.110.0410.00514.82
7.0.100.0330.00814.98
7.0.90.0350.01214.82
7.0.80.0450.01014.83
7.0.70.0480.00814.63
7.0.60.0450.00314.95
7.0.50.0560.01014.92
7.0.40.0360.01414.00
7.0.30.0220.01213.98
7.0.20.0310.01014.02
7.0.10.0200.01013.76
7.0.00.0430.01013.95
5.6.400.0120.00314.30
5.6.390.0090.00614.19
5.6.380.0000.01714.48
5.6.370.0030.01014.27
5.6.360.0030.01514.26
5.6.350.0030.01014.50
5.6.340.0040.01114.29
5.6.330.0030.00914.14
5.6.320.0060.00614.45
5.6.310.0110.00314.11
5.6.300.0000.01514.32
5.6.290.0070.01114.30
5.6.280.0000.01814.36
5.6.270.0070.00414.39
5.6.260.0070.00714.11
5.6.250.0030.01214.58
5.6.240.0070.00714.31
5.6.230.0000.01414.16
5.6.220.0030.01414.38
5.6.210.0030.01014.20
5.6.200.0090.00314.12
5.6.190.0030.01014.36
5.6.180.0070.01014.04
5.6.170.0090.00314.19
5.6.160.0070.00314.35
5.6.150.0050.00314.36
5.6.140.0040.00714.07
5.6.130.0040.01114.39
5.6.120.0090.00914.34
5.6.110.0030.01114.29
5.6.100.0070.00714.13
5.6.90.0040.01114.25
5.6.80.0000.01514.05
5.6.70.0040.00714.18
5.6.60.0070.00714.06
5.6.50.0090.00313.80
5.6.40.0070.00614.10
5.6.30.0000.01413.93
5.6.20.0040.01114.33
5.6.10.0110.00014.14
5.6.00.0030.01014.07

preferences:
34.38 ms | 400 KiB | 5 Q