3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = 6; $a = function() use ($var){ echo $var; }; $reflected = new \ReflectionFunction($a); var_export($reflected->getStaticVariables());

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.1.130.0000.00717.68
8.1.120.0030.00417.42
8.1.110.0000.00717.46
8.1.100.0000.00817.48
8.1.90.0030.00517.43
8.1.80.0070.00017.29
8.1.70.0000.00717.49
8.1.60.0070.00017.47
8.1.50.0030.00617.54
8.1.40.0050.00217.50
8.1.30.0040.00417.56
8.1.20.0030.00617.54
8.1.10.0040.00417.37
8.1.00.0040.00417.43
8.0.260.0040.00417.09
8.0.250.0030.00316.91
8.0.240.0040.00416.87
8.0.230.0080.00016.83
8.0.220.0000.00716.73
8.0.210.0040.00416.82
8.0.200.0000.00616.95
8.0.190.0030.00617.00
8.0.180.0040.00416.89
8.0.170.0040.00416.79
8.0.160.0030.00416.82
8.0.150.0000.00716.90
8.0.140.0060.00316.73
8.0.130.0030.00313.30
8.0.120.0050.00316.88
8.0.110.0000.00716.93
8.0.100.0050.00216.75
8.0.90.0000.00716.83
8.0.80.0150.01116.90
8.0.70.0200.01116.88
8.0.60.0190.00716.81
8.0.50.0170.00616.78
8.0.30.0130.00816.98
8.0.20.0160.00817.20
8.0.10.0210.00717.01
8.0.00.0080.01316.82
7.4.330.0000.00516.72
7.4.320.0000.00616.49
7.4.300.0030.00316.59
7.4.290.0000.00816.42
7.4.280.0000.00716.53
7.4.270.0030.00316.48
7.4.260.0000.00716.55
7.4.250.0040.00416.59
7.4.240.0020.00616.54
7.4.230.0040.00416.64
7.4.220.0000.01916.54
7.4.210.0180.00616.53
7.4.200.0200.00716.63
7.4.190.0170.00916.59
7.4.180.0260.00516.63
7.4.160.0160.01116.54
7.4.150.0160.01316.82
7.4.140.0190.00817.15
7.4.130.0120.01416.49
7.4.120.0140.00916.49
7.4.110.0150.01216.35
7.4.100.0150.01116.51
7.4.90.0130.01516.41
7.4.80.0180.00817.40
7.4.70.0150.01016.48
7.4.60.0130.01316.43
7.4.50.0140.01016.29
7.4.40.0160.00816.29
7.4.30.0160.01116.43
7.4.20.0200.01116.37
7.4.10.0210.00516.44
7.4.00.0130.01015.65
7.3.330.0000.00813.30
7.3.320.0030.00313.15
7.3.310.0000.00716.30
7.3.300.0000.00716.18
7.3.290.0080.01216.25
7.3.280.0100.01216.25
7.3.270.0160.01016.64
7.3.260.0100.01216.26
7.3.250.0140.00816.35
7.3.240.0100.01316.30
7.3.230.0190.00516.29
7.3.220.0130.01216.20
7.3.210.0200.00416.22
7.3.200.0180.00617.26
7.3.190.0130.00916.33
7.3.180.0150.00816.29
7.3.170.0140.01116.29
7.3.160.0160.00516.31
7.3.150.0240.00316.19
7.3.140.0180.00716.23
7.3.130.0290.01316.24
7.3.120.0180.00515.65
7.3.110.0180.00815.65
7.3.100.0130.01115.70
7.3.90.0160.00615.91
7.3.80.0150.00815.67
7.3.70.0120.01015.82
7.3.60.0150.00515.81
7.3.50.0170.00515.83
7.3.40.0160.00415.81
7.3.30.0120.01015.77
7.3.20.0130.00816.43
7.3.10.0160.01016.36
7.3.00.0160.01116.47
7.2.340.0210.00616.30
7.2.330.0170.00916.33
7.2.320.0150.00916.37
7.2.310.0160.00616.44
7.2.300.0200.00816.39
7.2.290.0140.01116.43
7.2.280.0240.00916.31
7.2.270.0130.01516.27
7.2.260.0230.00416.29
7.2.250.0170.00615.88
7.2.240.0100.01215.77
7.2.230.0170.00615.89
7.2.220.0160.00615.90
7.2.210.0120.01015.90
7.2.200.0160.00816.01
7.2.190.0210.00815.93
7.2.180.0090.01315.91
7.2.170.0160.00916.02
7.2.160.0170.01416.52
7.2.150.0180.00916.50
7.2.140.0160.01216.62
7.2.130.0210.00816.59
7.2.120.0150.01216.48
7.2.110.0150.01016.59
7.2.100.0190.00916.64
7.2.90.0140.01016.60
7.2.80.0150.00916.53
7.2.70.0180.01016.49
7.2.60.0150.00616.59
7.2.50.0150.00916.51
7.2.40.0150.01116.50
7.2.30.0180.01116.93
7.2.20.0180.00916.75
7.2.10.0310.00916.90
7.2.00.0210.01117.38
7.1.330.0190.00615.62
7.1.320.0180.00815.58
7.1.310.0130.00915.71
7.1.300.0160.00515.55
7.1.290.0100.01115.61
7.1.280.0130.01015.67
7.1.270.0140.00615.66
7.1.260.0140.00715.57
7.1.250.0250.00615.58
7.1.240.0180.00615.57
7.1.230.0190.00715.50
7.1.220.0170.00815.56
7.1.210.0180.00815.56
7.1.200.0160.00515.63
7.1.190.0230.00615.61
7.1.180.0150.01015.61
7.1.170.0170.01015.56
7.1.160.0240.00515.50
7.1.150.0270.00615.94
7.1.140.0170.01115.93
7.1.130.0390.01015.75
7.1.120.0270.00815.87
7.1.110.0220.00915.67
7.1.100.0150.00816.22
7.1.90.0170.00915.54
7.1.80.0150.01015.66
7.1.70.0140.00915.92
7.1.60.0200.00720.44
7.1.50.0180.00820.37
7.1.40.0170.01020.32
7.1.30.0190.01120.29
7.1.20.0180.01020.31
7.1.10.0090.01015.79
7.1.00.0120.01315.87
7.0.330.0180.01015.13
7.0.320.0140.01115.19
7.0.310.0180.00915.17
7.0.300.0140.01315.18
7.0.290.0190.01015.20
7.0.280.0370.01015.10
7.0.270.0230.00915.50
7.0.260.0340.01015.63
7.0.250.0190.00915.35
7.0.240.0130.01315.44
7.0.230.0150.01115.29
7.0.220.0180.00715.31
7.0.210.0210.00714.91
7.0.200.0090.01215.73
7.0.190.0120.00715.75
7.0.180.0120.01015.60
7.0.170.0120.01115.58
7.0.160.0090.00915.50
7.0.150.0110.00915.62
7.0.140.0120.00815.59
7.0.130.0110.00815.68
7.0.120.0160.00815.73
7.0.110.0120.01015.57
7.0.100.0110.00915.60
7.0.90.0190.01115.58
7.0.80.0150.00715.54
7.0.70.0120.00715.51
7.0.60.0500.00515.57
7.0.50.0180.01015.57
7.0.40.0130.00815.68
7.0.30.0110.00815.73
7.0.20.0120.00915.62
7.0.10.0110.00615.69
7.0.00.0110.00815.59
5.6.400.0180.01215.78
5.6.390.0170.01015.78
5.6.380.0100.01415.81
5.6.370.0160.00715.86
5.6.360.0150.00815.77
5.6.350.0190.01115.79
5.6.340.0180.01115.86
5.6.330.0210.00815.85
5.6.320.0190.00915.82
5.6.310.0210.01015.79
5.6.300.0120.04318.20
5.6.290.0170.03718.29
5.6.280.0120.03218.37
5.6.270.0170.02918.29
5.6.260.0160.03218.45
5.6.250.0140.03018.34
5.6.240.0150.02918.45
5.6.230.0170.03518.32
5.6.220.0160.02918.29
5.6.210.0150.02718.29
5.6.200.0160.03118.48
5.6.190.0170.04018.42
5.6.180.0140.03218.43
5.6.170.0170.03218.44
5.6.160.0170.04118.48
5.6.150.0170.03918.45
5.6.140.0140.03418.41
5.6.130.0180.03118.40
5.6.120.0140.03118.45
5.6.110.0160.02918.40
5.6.100.0200.02618.33
5.6.90.0190.02818.32
5.6.80.0140.03518.06
5.6.70.0130.03018.11
5.6.60.0160.03217.99
5.6.50.0170.03417.93
5.6.40.0160.03117.95
5.6.30.0140.03118.00
5.6.20.0170.03318.01
5.6.10.0180.02417.97
5.6.00.0150.02817.97
5.5.380.0150.03016.75
5.5.370.0170.02516.74
5.5.360.0160.03016.67
5.5.350.0170.03116.63
5.5.340.0120.03316.84
5.5.330.0150.03116.83
5.5.320.0140.02816.88
5.5.310.0160.02516.81
5.5.300.0180.02916.85
5.5.290.0130.03116.88
5.5.280.0160.02916.85
5.5.270.0150.02916.83
5.5.260.0130.02916.82
5.5.250.0180.02616.70
5.5.240.0110.03116.66
5.5.230.0170.02716.67
5.5.220.0130.03116.71
5.5.210.0130.03416.66
5.5.200.0160.02716.59
5.5.190.0160.02516.63
5.5.180.0130.03416.55
5.5.170.0150.01015.60
5.5.160.0130.03816.54
5.5.150.0140.02816.55
5.5.140.0130.02816.48
5.5.130.0120.02616.54
5.5.120.0170.02516.52
5.5.110.0150.02716.53
5.5.100.0160.02716.64
5.5.90.0110.03016.57
5.5.80.0160.02416.67
5.5.70.0120.03016.60
5.5.60.0160.02416.52
5.5.50.0130.02716.55
5.5.40.0180.02416.62
5.5.30.0140.02516.60
5.5.20.0160.02616.63
5.5.10.0120.02816.54
5.5.00.0110.03516.50
5.4.450.0200.00312.57
5.4.440.0170.00612.66
5.4.430.0100.01012.66
5.4.420.0160.00512.74
5.4.410.0210.00012.65
5.4.400.0140.00712.69
5.4.390.0190.00312.57
5.4.380.0200.00412.54
5.4.370.0160.00312.61
5.4.360.0180.00712.59
5.4.350.0090.00912.54
5.4.340.0170.00412.61
5.4.330.0120.00812.69
5.4.320.0110.01012.64
5.4.310.0190.00312.65
5.4.300.0150.00712.66
5.4.290.0180.00612.64
5.4.280.0170.00712.56
5.4.270.0220.00012.57
5.4.260.0100.01012.59
5.4.250.0120.00912.55
5.4.240.0160.00612.62
5.4.230.0140.00712.40
5.4.220.0060.01312.30
5.4.210.0170.00712.36
5.4.200.0150.00512.42
5.4.190.0060.01212.32
5.4.180.0210.00012.34
5.4.170.0150.00512.44
5.4.160.0060.01212.56
5.4.150.0060.01612.46
5.4.140.0140.00412.59
5.4.130.0120.00812.54
5.4.120.0150.00512.57
5.4.110.0120.00612.55
5.4.100.0170.00012.55
5.4.90.0110.00612.54
5.4.80.0090.00912.70
5.4.70.0120.00412.70
5.4.60.0120.00412.71
5.4.50.0130.00412.57
5.4.40.0100.00712.64
5.4.30.0050.01112.64
5.4.20.0120.00912.64
5.4.10.0100.00912.73
5.4.00.0290.00412.36
5.3.290.0160.00313.23
5.3.280.0150.00313.14
5.3.270.0140.00413.05
5.3.260.0150.00313.16
5.3.250.0140.00313.18
5.3.240.0120.00612.89
5.3.230.0130.00512.98
5.3.220.0120.00612.98
5.3.210.0090.00912.99
5.3.200.0100.00712.88
5.3.190.0250.00312.89
5.3.180.0140.00313.16
5.3.170.0140.00313.02
5.3.160.0180.00313.17
5.3.150.0090.00913.19
5.3.140.0150.00413.10
5.3.130.0090.01212.96
5.3.120.0150.00613.25
5.3.110.0130.00512.95
5.3.100.0160.00012.98
5.3.90.0040.01313.18
5.3.80.0110.00612.90
5.3.70.0130.00613.13
5.3.60.0120.00613.00
5.3.50.0150.00312.95
5.3.40.0130.00513.05
5.3.30.0130.00413.07
5.3.20.0130.00512.98
5.3.10.0030.01412.72
5.3.00.0150.00612.75
5.2.170.0110.00811.79
5.2.160.0110.00411.82
5.2.150.0070.00711.74
5.2.140.0120.00311.73
5.2.130.0070.00711.95
5.2.120.0130.00311.73
5.2.110.0070.01111.68
5.2.100.0100.01011.85
5.2.90.0090.00911.79
5.2.80.0130.00611.80
5.2.70.0140.00711.75
5.2.60.0100.00511.61
5.2.50.0130.00611.80
5.2.40.0050.01011.83
5.2.30.0100.00611.54
5.2.20.0110.00511.50
5.2.10.0110.00411.51
5.2.00.0140.00311.51
5.1.60.0130.00610.72
5.1.50.0070.00710.71
5.1.40.0090.00510.92
5.1.30.0070.00810.96
5.1.20.0090.00610.96
5.1.10.0080.00510.86
5.1.00.0210.00410.66
5.0.50.0090.00310.01
5.0.40.0070.0059.89
5.0.30.0120.0039.89
5.0.20.0000.0129.99
5.0.10.0120.00310.01
5.0.00.0080.0049.89
4.4.90.0060.0039.89
4.4.80.0070.0029.89
4.4.70.0030.0079.89
4.4.60.0090.0009.89
4.4.50.0080.0009.89
4.4.40.0110.0009.89
4.4.30.0080.0009.89
4.4.20.0050.0069.89
4.4.10.0080.0029.89
4.4.00.0050.0059.89
4.3.110.0080.0009.89
4.3.100.0080.0009.89
4.3.90.0090.0029.89
4.3.80.0050.0059.89
4.3.70.0040.0059.89
4.3.60.0070.0029.89
4.3.50.0030.0079.89
4.3.40.0100.0009.89
4.3.30.0080.0009.89
4.3.20.0040.0049.89
4.3.10.0060.0039.89
4.3.00.0030.0039.89

preferences:
31.9 ms | 411 KiB | 12 Q